0 Replies Latest reply on Oct 9, 2010 10:26 AM by alin.heyoulin.qq.com

    Latest Weld snapshot memory leak or ThreadLocal cause bug?

    alin.heyoulin.qq.com
      This is some fault infomation when shutdown tomcat
      
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.injection.CurrentInjectionPoint$1@25927ae]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
      2010-10-9 22:07:32 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      fault:The web application [/testWeld] created a ThreadLocal with key of type [null] (value [org.jboss.weld.context.AbstractManagedContext$1@25764c8]) 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.
      2010-10-9 22:07:32 org.apache.coyote.http11.AbstractHttp11Protocol stop
      info:Stopping Coyote HTTP/1.1 on http-8080
      2010-10-9 22:07:32 org.apache.coyote.ajp.AbstractAjpProtocol stop
      
      
      I test on tomcat 7
      
      I notice that each weld request excute by each tomcat Daemon Thread [http-8080-exec-xx] managed by tomcat ThreadPoolExecutor.
      So request ThreadLocal variable should cleanup at the end of rereqst?
      There are 20 fault when stop tomcat and tomcat ThreadPool size is 10.If i increase to 20 there are 40 fault.