Re: ThreadLocal causing memory leak

2005-06-09 Thread Ilkka Priha
Thanks a lot Danilo, we've noticed this very same leak but thought it is a Tomcat problem and simply accepted that after 3-5 redeployments the server must be restarted! Your first patch seems to be OK for us as we don't apply proxies either. -- Ilkka Danilo Tommasina wrote: Hi again, and so

Re: ThreadLocal causing memory leak

2005-06-09 Thread Danilo Tommasina
Hi again, and sorry for spamming the mailinglist :) Here is some code that can be applied to org.apache.ojb.broker.core.PersistenceBrokerThreadMapping to clean up the ThreadLocal stuff to be able to cleanly shutdown/reload a web-application without leaks in the PermGen. Using following code wil

Re: ThreadLocal causing memory leak

2005-06-09 Thread Danilo Tommasina
Hi Martin, thanks for the quick reply. >> we are observing memory leaks in our web-application when redeploying in a >> web-context > Just a quick first though before reading your post in detail... LOL, I knew, I had to put the second phrase of my previous e-mail at the first position :) The

Re: ThreadLocal causing memory leak

2005-06-09 Thread Martin Kalén
Danilo Tommasina (No Signature) wrote: we are observing memory leaks in our web-application when redeploying in a web-context Just a quick first though before reading your post in detail... Do you know that the Servlet reloading functionality in Apache Tomcat "Manager Web Application" is not

ThreadLocal causing memory leak

2005-06-09 Thread Danilo Tommasina (No Signature)
Hi everybody, we are observing memory leaks in our web-application when redeploying in a web-context, the problem is that there are references to the web-application ClassLoader that remain open and prevent class garbage collection of singletons, static fields and unloading of Classes. before y