Steve,
I assume you're testing this with Tomcat 6.0.24 or higher, correct?
I've noticed this too, and did some research on it: as of version
6.0.24, Tomcat by default runs memory leak detection on everything and
logs the results to its log file. These errors you're seeing have
probably always been there, but are only logged with newer versions of
Tomcat. The Tomcat wiki page
http://wiki.apache.org/tomcat/MemoryLeakProtection has a good
explanation of the memory leak detection/protection features, and a
breakdown of the kinds of situations it detects, and possible fixes.
In short, I decided these errors were nothing that needed to be
addressed immediately, but we should probably keep an eye on them going
forward, and do what we can to clean them up as we refactor code. Many
of the errors may be generated by third-party classes in jars
distributed with Fedora, in which case our hands may be tied as to the
amount of fixing we can do.
-- Scott
Steve Bayliss wrote:
> I'm seeing some SEVERE log messages on shutting down Tomcat in Tomcat's
> catalina log file.
>
> (as an aside, when running integration tests with the tests doing their own
> install of Fedora, I'm not seeing any tomcat log files at all - it would be
> useful if we had these to check for any issues).
>
> The messsages are pasted below. Can anyone else verify this?
>
> Steve
>
> 28-Mar-2011 08:42:01 org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> 28-Mar-2011 08:42:01 org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8443
> 28-Mar-2011 08:42:02 org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [Thread-2] but has failed to stop it. This is very likely to create a memory
> leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [ActiveMQ Scheduler] but has failed to stop it. This is very likely to
> create a memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [JotmBatch] but has failed to stop it. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [JotmClock] but has failed to stop it. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [Write-lock Reaper] but has failed to stop it. This is very likely to create
> a memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [VMTransport] but has failed to stop it. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [VMTransport] but has failed to stop it. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/fedora] appears to have started a thread named
> [Persistence Adaptor Task] but has failed to stop it. This is very likely to
> create a memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: The web application [/fedora] created a ThreadLocal with key of type
> [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value
> [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@161477a]) and a
> value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value
> [org.apache.xerces.jaxp.DocumentBuilderImpl@19bb4f0]) but failed to remove
> it when the web application was stopped. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: The web application [/fedora] created a ThreadLocal with key of type
> [null] (value [ch.qos.logback.core.UnsynchronizedAppenderBase$1@1841515])
> and a value of type [java.lang.Boolean] (value [false]) but failed to remove
> it when the web application was stopped. This is very likely to create a
> memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: The web application [/fedora] created a ThreadLocal with key of type
> [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
> [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@843e7b]) and a value
> of type [java.util.WeakHashMap] (value [{=null, ={1, 2, 3}, =null, ={1, 6},
> ={1}, =null, =null, ={1, 2}}]) but failed to remove it when the web
> application was stopped. This is very likely to create a memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: The web application [/fedora] created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2232d8]) and a value
> of type [org.apache.derby.iapi.services.context.ContextManager] (value
> [org.apache.derby.iapi.services.context.ContextManager@3fe94a]) but failed
> to remove it when the web application was stopped. This is very likely to
> create a memory leak.
> 28-Mar-2011 08:42:04 org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: The web application [/fedora] created a ThreadLocal with key of type
> [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
> [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@843e7b]) and a value
> of type [java.util.WeakHashMap] (value [{={1}}]) but failed to remove it
> when the web application was stopped. This is very likely to create a memory
> leak.
> 28-Mar-2011 08:42:07 org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> 28-Mar-2011 08:42:07 org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8443
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Fedora-commons-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
--
Scott Prater
Library, Instructional, and Research Applications (LIRA)
Division of Information Technology (DoIT)
University of Wisconsin - Madison
[email protected]
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers