Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7175

Intermittent log messages while unregistering Hudson app/stopping Tomcat ...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • 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?

            Unassigned Unassigned
            km km
            Votes:
            11 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: