Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>(I'm assuming that the idle threads you are talking about are application threads. If you are talking about Tomcat's worker threads, then they should not cause permgen problems when idle.)</p> <blockquote> <p>I tried to create a bug about this, but the NetBeans developer rejected it ... I am very surprise ...</p> </blockquote> <p>I'm very unsurprised. This is not really a NetBeans problem. It is not even really a Tomcat or JBoss problem. </p> <p>The problem with idle / orphaned application threads is that you cannot safely kill threads in a running JVM. And without the ability to do this you cannot stop leakages of (in this case) permgen space. This is essentially a Java platform problem. It can only be solved when JVMs support the Isolate mechanisms defined by JSR 121.</p> <p>But assuming that your problem is related to doing hot deployment, it is not just the idle application threads that you have to worry about. If there is <em>any</em> reachable instance of <em>any</em> class that you are redeploying, that will cause the original old class loader and all classes it loaded to remain reachable.</p> <blockquote> <p>... this is a big stopper to use NetBeans to develop web app. </p> </blockquote> <p>The solution is to restart your web container every now and then. This will clean out the idle threads and other cruft and release the leaked permgen space. You can ameliorate it by running with a larger heap and more permgen, but you cannot make it go away, especially if some of the orphaned threads are not idle ...</p> <p>Oh yea, and don't be a big baby! This ain't a show stopper, its just a small inconvenience :-) </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload