[opencms-dev] AW: Tomcat memory leaks on webapp restarts

Jonathan Woods jonathan.woods at scintillance.com
Thu May 25 17:14:19 CEST 2006


I recall a recent thread in which someone pointed out that Tomcat gradually
took up more and more memory on each each restart of a webapp running within
it.
 
I wonder if the fault lies in using Jakarta Commons Logging (JCL) libraries
prior to v1.1?  See
http://jakarta.apache.org/commons/logging/guide.html#Classloader_and_Memory_
Management for a discussion in which it's made clear that for versions prior
to 1.1, classes which call LogFactory.getLog(...) must also call
LogFactory.release(), or risk having references to loaded classes held on to
by the logging framework.
 
Offhand, I don't know which version of JCL is distributed with 6.0.4 and
6.2.1, but if you're suffering from Tomcat memory leaks you could do worse
than try upgrading to JCL 1.1.
 
Jon
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060525/54fbbf6c/attachment.htm>


More information about the opencms-dev mailing list