Hi Nestor, Which type of "OutOfMemory" error do you sometimes see in your Tomcat logs? There are two possible "OutOfMemoryErrors" you may encounter:
(1) java.lang.OutOfMemoryError: Java heap space This one means you may need to tweak the -Xmx and/or -Xms settings for Tomcat (though it looks like you may already be doing that). (2) java.lang.OutOfMemoryError: PermGen space This one means that you need to increase the "-XX:MaxPermSize" settings for Tomcat. For more information on both OutOfMemory errors, and how you can tweak your Tomcat memory settings see: https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace - Tim On 5/17/2012 8:03 AM, Nestor Oviedo wrote: > Hi all. > We have a Dspace 1.8.2 (with our extensions), and almost 20000 items and > 1000 collections/communities. Our Tomcat 6 get started with -Xmx=2GB > (Java 1.6.0_26 64bit). > When tomcat starts everything work fine, but after a few hours the > memory is full and the application gets unresponsive. Some times we see > an OutOfMemory error in the log. > When we stop the tomcat, the log shows thousands of lines like the > following (with many different types and values): > > org.apache.catalina.loader.WebappClassLoader clearReferencesThreads > GRAVE: The web application [] appears to have started a thread named > [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This > is very likely to create a memory leak. > > org.apache.catalina.loader.WebappClassLoader clearReferencesThreads > GRAVE: The web application [] appears to have started a thread named > [Timer-0] but has failed to stop it. This is very likely to create a memory > leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@29a9b1ec]) and a value > of type [org.apache.xerces.parsers.SAXParser] (value > [org.apache.xerces.parsers.SAXParser@8a61d64]) but failed to remove it when > the web application was stopped. This is very likely to create a memory leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@43e01252]) and a value > of type [org.dspace.app.xmlui.wing.IncludePageMeta] (value > [org.dspace.app.xmlui.wing.IncludePageMeta@2bd2e84e]) but failed to remove it > when the web application was stopped. This is very likely to create a memory > leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type [null] > (value [null]) and a value of type > [org.apache.cocoon.transformation.TraxTransformer] (value > [org.apache.cocoon.transformation.TraxTransformer@23916f5c]) but failed to > remove it when the web application was stopped. This is very likely to create > a memory leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@21261342]) and a value > of type [org.apache.cocoon.components.xslt.TraxProcessor] (value > [org.apache.cocoon.components.xslt.TraxProcessor@4aba630e]) but failed to > remove it when the web application was stopped. This is very likely to create > a memory leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type > [org.apache.solr.common.util.DateUtil.ThreadLocalDateFormat] (value > [org.apache.solr.common.util.DateUtil$ThreadLocalDateFormat@12bd5276]) and a > value of type [java.text.SimpleDateFormat] (value > [java.text.SimpleDateFormat@5af7aed5]) but failed to remove it when the web > application was stopped. This is very likely to create a memory leak. > > org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap > GRAVE: The web application [] created a ThreadLocal with key of type > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4b70ca96]) and a value > of type [org.apache.cocoon.serialization.XMLSerializer] (value > [org.apache.cocoon.serialization.XMLSerializer@5a04648b]) but failed to > remove it when the web application was stopped. This is very likely to create > a memory leak. > > > I've found some old info about this issue, but it seems there is no fix: > http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg11969.html > http://dspace.2283337.n4.nabble.com/Tomcat-memory-leak-warning-prevents-restarting-td3544827.html > http://stackoverflow.com/questions/5292349/this-is-very-likely-to-create-a-memory-leak-tomcat > > Is there somenting new on this issue? > > Thanks in advance > Nestor > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Dspace-devel mailing list > Dspace-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel