Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

Tomcat におけるメモリーリークを示すログメッセージ

Solution Verified - Updated -

Issue

  • tomcat のログに、以下のようなメモリーリークエントリーが出力されます。
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE:A web application appears to have started a thread named [Business Objects - Sessions Clean up] but has failed to stop it.This is very likely to create a memory leak.
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE:A web application appears to have started a thread named [Timer-1] but has failed to stop it.This is very likely to create a memory leak.
org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE:A web application created a ThreadLocal with key of type [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl] (value [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl$ThreadCounterImpl@42c5898a]) and a value of type [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl.ThreadCounterImpl.Counter] (value [org.aspectj.runtime.internal.cflowstack.ThreadStackFactoryImpl$ThreadCounterImpl$Counter@36c8e545]) but failed to remove it when the web application was stopped.To prevent a memory leak, the ThreadLocal has been forcibly removed.
org.apache.coyote.http11.Http11Protocol destroy
  • tomcat ログに以下のような警告エントリーが出力されます。
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE:A web application appears to have started a thread named [http-8080-8] but has failed to stop it.This is very likely to create a memory leak.

org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE:A web application appears to have started a thread named [http-8080-7] but has failed to stop it.This is very likely to create a memory leak.

WARNING:Failed to clear ThreadLocal references 
 java.lang.NoSuchFieldException: threadLocals
   at java.lang.Class.getDeclaredField(libgcj.so.10)
   at org.apache.catalina.loader.WebappClassLoader.clearReferencesThreadLocals(WebappClassLoader.java:2009)
   at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1709)
   at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1621)
   at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:710)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4649)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1319)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1290)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:323)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:618)
   at java.lang.reflect.Method.invoke(libgcj.so.10)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Environment

  • Red Hat Enterprise Linux 6
    • Tomcat 6
  • JBoss Enterprise Web Server (EWS) 1.0.1 以降
    • Tomcat 6
  • JBoss Enterprise Web Server (EWS) 2.x
    • Tomcat 6
    • Tomcat 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.