More sources of Tomcat memory leaks

2010-07-26 Thread Arjen Knibbe
items whose parent field referred to the WebappClassLoader. Traverse Collections and Maps in the two java.lang.ThreadLocal table fields, clearing all deep references to the WebappClassLoader. After that, my classes were unloaded after undeploy. Arjen -- View this message in context: http://old.nab

Re: More sources of Tomcat memory leaks

2010-07-27 Thread Mark Thomas
On 26/07/2010 09:16, Arjen Knibbe wrote: > > After being plaged by PermGen space OutOfMemoryErrors I came across an > http://java.dzone.com/articles/memory-leak-protection-tomcat interview with > Mark Thomas announcing the solution for these kinds of memory leaks. I > upgraded Tomcat 6.0.26 on S

Re: More sources of Tomcat memory leaks

2010-07-29 Thread Arjen Knibbe
{ map.put(key, null); System.out.println(info + ": removed value referring ClassLoader from Map"); } catch (NullPointerException n) { goners.add

Re: More sources of Tomcat memory leaks

2010-07-29 Thread Rainer Jung
On 29.07.2010 17:00, Arjen Knibbe wrote: I searched for an "upgrading to Tomcat 7" manual in the Tomcat documentation to check if the new JreMemoryLeakPreventionListener is mentioned, but I could not find any guidelines for upgrading... There is some info about major version differences at htt

Re: More sources of Tomcat memory leaks

2010-07-29 Thread Sylvain Laurent
ner); >} >return false; >} > >while (iterator.hasNext()) >{ >if (clearRecursive(info, iterator.next())) >{ >iterator.remove(); >} >} > > return false; >