-
Bug
-
Resolution: Unresolved
-
Major
-
Tomcat 6.0.29
Tomcat 7.0.14
Tomcat 7.0.50
Jenkins 1.595
Java 1.7
Occasionally, I get the following log statements in catalina.out while stopping Tomcat where my Hudson.war is deployed.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/hudson] appears to have started a thread named [com.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [net.sf.json.AbstractJSON$1@4190d536]) and a value of type [java.util.HashSet] (value [[]]) but failed
to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [net.sf.json.AbstractJSON$1@4190d536]) and a value of type [java.util.HashSet] (value [[]]) but failed
to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [null] (value [org.kohsuke.stapler.Stapler$1@1ae637f0]) and a value of type [java.text.SimpleDateFormat] (value [java
.text.SimpleDateFormat@c4dc9900]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 10, 2010 12:45:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/hudson] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@627b5c]) and a value of type [org.acegisecurity.context.Securit
yContextImpl] (value [org.acegisecurity.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. This is very likely to create a
memory leak.
Aug 10, 2010 12:45:35 PM org.apache.coyote.http11.Http11Protocol destroy
----------------------------------------------------------------------------------
Perhaps it is better to use WeakHashMaps in the said ThreadLocals?
- is duplicated by
-
JENKINS-12291 Multiple memory leaks while stopping jenkins on tomcat
-
- Resolved
-
I can reproduce it with 1.427 version :
25-Aug-2011 10:55:22 org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
25-Aug-2011 10:55:22 org.apache.coyote.AbstractProtocolHandler pause
INFO: Pausing ProtocolHandler ["http-apr-8380"]
25-Aug-2011 10:55:23 org.apache.coyote.AbstractProtocolHandler pause
INFO: Pausing ProtocolHandler ["http-apr-8383"]
25-Aug-2011 10:55:24 org.apache.coyote.AbstractProtocolHandler pause
INFO: Pausing ProtocolHandler ["ajp-apr-8389"]
25-Aug-2011 10:55:25 org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping filesystem_scm
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping maven-plugin
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping instant-messaging
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping jabber
25-Aug-2011 10:55:25 hudson.plugins.im.HudsonIsBusyListener removeConnectionProvider
INFO: Last connection provider removed. Unregistering this instance.
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping avatar
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping jira
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping twitter
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping subversion
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping cvs
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping postbuild-task
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping sonar
25-Aug-2011 10:55:25 hudson.PluginWrapper stop
INFO: Stopping ssh-slaves
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jenkins] appears to have started a thread named [Thread-17] but has failed to stop it. This is very likely to create a memory leak.
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jenkins] appears to have started a thread named [com.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jenkins] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/jenkins] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@71481dc3]) and a value of type [org.acegisecurity.context.SecurityContextImpl] (value [org.acegisecurity$
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/jenkins] created a ThreadLocal with key of type [hudson.model.Run$1] (value [hudson.model.Run$1@359a274f]) and a value of type [java.text.SimpleDateFormat] (value [java.text.SimpleDateFormat@b61f11ff]) but $
25-Aug-2011 10:55:25 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/jenkins] created a ThreadLocal with key of type [hudson.model.Run$1] (value [hudson.model.Run$1@359a274f]) and a value of type [java.text.SimpleDateFormat] (value [java.text.SimpleDateFormat@b61f11ff]) but $
25-Aug-2011 10:55:25 org.apache.coyote.AbstractProtocolHandler stop
INFO: Stopping ProtocolHandler ["http-apr-8380"]
25-Aug-2011 10:55:25 org.apache.coyote.AbstractProtocolHandler stop
INFO: Stopping ProtocolHandler ["http-apr-8383"]
25-Aug-2011 10:55:25 org.apache.coyote.AbstractProtocolHandler stop
INFO: Stopping ProtocolHandler ["ajp-apr-8389"]