I did some tests and the results are very promising. I use one ThreadLocal variable in my Tapestry application. It took about 4.5MB for every re-deployment from Perm Memory and never went down. After I changed the ThreadLocal.set(null) to ThreadLocal.remove(), the Perm Memory was stablized at 31MB. My theory is WORKING.
I used JBOSS 4.0.4.GA Patch 1 and JDK5.0 Update 7 on Windows XP. I strongly suggest to use ThreadLocal.remove() instead of ThreadLocal.set(null). I think that people will be interested in the findings, so, I send it to both lists. Best Regards, Cliff Zhao On 6/11/06, Henri Dupre <[EMAIL PROTECTED]> wrote:
On 6/11/06, Cliff Zhao <[EMAIL PROTECTED]> wrote: > > Any thoughts? In the tomcat faq, they say that this is a classloader issue and cannot be solved. Not sure how the threadlocals affect that... Thanks, Henri.