clearReferencesJdbcは Seasar2 の DriverManagerUtil#deregisterAllDrivers() で無事に削除できた。でも、まだ、clearReferencesThreadsとclearThreadLocalMapがでますね…。clearReferencesThreadsの方は終了するときにsleepをしたりすると、でなくなったりするので、スレッドの終了待ちをすれば良いのかも。clearThreadLocalMapは自分でnullにしないといかんのか? この問題って、ぐぐっても Jackrabbit くらいしか引っかからんのだけど、まだ Tomcat 6.0.24 ってあまりつかわれていないのだろうか…。
10/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 致命的: A web application appears to have started a thread named [Seasar2-TimeoutManager] but has failed to stop it. This is very likely to create a memory leak. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 致命的: A web application appears to have started a thread named [H2 Log Writer FESS] but has failed to stop it. This is very likely to create a memory leak. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 致命的: A web application appears to have started a thread named [chronos-pool-1-daemonthread-1] but has failed to stop it. This is very likely to create a memory leak. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework. container.factory.S2ContainerFactory$1] (value [org.seasar.framework.container.factory. S2ContainerFactory$1@62b21d14]) and a value of type [java.util.LinkedHashSet] (value ) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.ImmutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$ImmutableMapThreadLocal@68634baf]) and a value of type [java.util.Collections.EmptyMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.ImmutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$ImmutableMapThreadLocal@29ba92bb]) and a value of type [java.util.Collections.EmptyMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.MutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$MutableMapThreadLocal@17f74864]) and a value of type [java.util.HashMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.ImmutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$ImmutableMapThreadLocal@6bb1a986]) and a value of type [java.util.Collections.EmptyMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.ImmutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$ImmutableMapThreadLocal@5cf0d3a6]) and a value of type [java.util.Collections.EmptyMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.MutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$MutableMapThreadLocal@46d766f5]) and a value of type [java.util.HashMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010/02/10 6:10:18 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 致命的: A web application created a ThreadLocal with key of type [org.seasar.framework.container.external.servlet.HttpServletExternalContext.ImmutableMapThreadLocal] (value [org.seasar.framework.container.external.servlet.HttpServletExternalContext$ImmutableMapThreadLocal@67a88328]) and a value of type [java.util.Collections.EmptyMap] (value [{}]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.