Aug 29, 2012 12:47:44 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
Aug 29, 2012 12:47:44 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
Aug 29, 2012 12:47:45 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The 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.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Timer-3] but has failed to stop it. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3d1848]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1055eb1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@1720e5c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@10cc503]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@15a82f7]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@14c4cc7]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@44aeeb]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@137fac1]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@2fa904]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1016caf]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@867ca8]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@162062c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@8345e0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.builder.ToStringStyle$1@60994a]) 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 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1eff48d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@a05e2e]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@872ebe]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@10dbc37]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@bfd4f6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@366c17]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@f2938f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@1b593d2]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1fbe9e6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1b9305f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@116d3cf]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1abf1f6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@19a61d3]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@8c6891]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@254464]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@ad40e8]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@807a29]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@d440fc]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@f663e4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@183b5d]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@67272d]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@e16306]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Aug 29, 2012 12:47:45 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@18bbe2b]) and a value of type [byte[]] (value [[B@12c4f94]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
3 に答える
Tomcat には、Permanent Generation メモリ リークのいくつかのケースの検出機能が組み込まれています。この PermGen リークが何であるかを説明する、私が以前に書いたブログ投稿を次に示します: http://plumbr.eu/blog/what-is-a-permgen-leak。アプリケーションを調べて、Tomcat が特定した問題の理由を見つける必要があります。私見、これらのログは一目瞭然です。
おそらく、これは webapp の実行中に問題を引き起こしているわけではなく、Tomcat マネージャーを使用して webapp を停止したときにこれらのエラーが表示されるだけです。
Tomcat は Web アプリケーションで使用されているすべてのメモリを解放することはできないため、ある時点で Web アプリケーションを繰り返し再起動すると、Tomcat でメモリが不足します。クリーンアップされていない多数の ThreadLocals が作成されているようです。
オプションは次のとおりです。
- これらの ThreadLocals がクリーンアップされていない理由を調べてください。Tomcat でのこの種のメモリ リークの追跡については、非常に多くの情報があります。たとえば、http ://wiki.apache.org/tomcat/MemoryLeakProtection です。
- Tomcat マネージャーを使用して Web アプリケーションを再起動する代わりに、Tomcat 自体を再起動します。その Tomcat インスタンスに他のライブ Web アプリケーションがある場合は適切なオプションではありませんが、Web アプリケーションが唯一のものである場合は完全に受け入れられます。
- 上記のバリエーション: manager を使用して webapp を再起動しますが、使用しているメモリ量に注意してください (リークは特に重要ではない場合があります)。次に、必要に応じて Tomcat を再起動します。Tomcat の完全な再起動が必要になる前に、Web アプリケーションを何度でも安全に再起動できることがわかる場合があります。
使用している struts2 のバージョンがわかりません。Struts2 の質問に必ず struts2 タグを付けてください。そうしないと、適切な注意を引くことができません。
これは、以前のバージョンの struts2 で修正された既知のバグの 1 つでした。S22.3.3
アプリケーションの停止/アンデプロイ/再デプロイ時に、localContext ThreadLocal が適切にクリーンアップされません。これにより、ほとんどの場合、Web アプリケーションの ClassLoader がガベージ コレクションされず、再デプロイのメモリ リークが発生します。
使用している Struts2 のバージョンを確認し、必要に応じて最新のビルドにアップグレードしてください。
詳細については、XWork ContainerImpl が ThreadLocal メモリ リークを引き起こすを参照してください。