2012-03-22 37 views
0
SEVERE: The web application [/ppAdmin] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@64c47498]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:00 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/ppAdmin] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@63ad6884]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:00 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/ppAdmin] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@da8e53c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 
SEVERE: The web application [/Nemo] registered the JDBC 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. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 
SEVERE: The web application [/Nemo] registered the JDBC driver [net.sourceforge.jtds.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. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
SEVERE: The web application [/Nemo] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/Nemo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4ecd200f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/Nemo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6f461b5b]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/Nemo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@63ae2c6f]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/Nemo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3fe75e89]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 
SEVERE: The web application [/Nemo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6eef9525]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. 
Mar 22, 2012 12:43:01 PM org.apache.coyote.http11.Http11Protocol destroy 
INFO: Stopping Coyote HTTP/1.1 on http-8080 

WHY內存泄漏警告THERE ??? TOMCAT 6.0.35允許GC TOOL.STILL IT給出了這樣WARNINGS.I AM困擾有關這些WARNINGS.PLEASE幫助我如何WITH MANAGE這些? 任何幫助將高度讚賞..................提前感謝。Tomcat的內存泄漏使用Struts2的Xwork的

+0

您使用的是哪個版本的S2?還提供了web.xml的詳細信息 – 2012-03-22 07:51:10

+0

聽起來就像是類加載器泄漏,由於JDBC驅動程序泄漏,部分責任由於刪除它可以殺死它。這些並不容易解決:這裏是對這個問題的解釋:https://blogs.oracle.com/fkieviet/entry/classloader_leaks_the_dreaded_java並且在這裏討論解決它們的方法(儘管它非常具有挑戰性):https:/ /blogs.oracle.com/fkieviet/entry/how_to_fix_the_dreaded – Quaternion 2012-03-22 08:21:41

+0

不好的一面是,你的應用程序可能沒有空間來生成新對象......好消息是重新部署只有一個漏洞,並且還有一個好消息,因爲tomcat已經發現了這個漏洞,畢竟內存可能會被清除,所以可能沒有什麼可擔心的。 – Quaternion 2012-03-22 08:24:41

回答

1

我與Tomcat 6和Struts2 2.1.8 webapp(maven 3.0.3 + eclipse keepler + JDK 1.6.0_22)有同樣的問題。我是struts2 + tomcat開發人員的新手,我不習慣解決這類問題。

在對我的代碼進行了一些修改(並且不使用svn或git ...)之後,以及在開始使用mvn tomcat之後:重新部署任務(女巫讓我困惑),我也有同樣的行爲,不知道是什麼導致部署失敗(項目不停地編譯)。

該錯誤似乎很混亂,並且對我沒有任何描述,而且我讀過許多相關的帖子。我已經嘗試更新struts2版本,因爲我已經讀過,struts2 2.3.3(使用2.1.8)似乎解決了這種問題。

https://issues.apache.org/jira/browse/WW-3768

我dont't知道爲什麼我只是讀卡塔利娜日誌:

SEVERE: Error filterStart 
12/02/2014 10:46:23 org.apache.catalina.core.StandardContext start 
SEVERE: Context [/validador] startup failed due to previous errors 

答案非常接近,在本地主機,date.log! 這表明我在struts.xml中聲明瞭一個不好的行爲,所以解決這個問題非常簡單,而且描述性很強,但是如此難以弄清楚讀取catalina日誌。

SEVERE: Exception starting filter struts2 
Unable to load configuration. - action - file:/C:/apps/apache-tomcat- 6.0.39/webapps/validador/WEB-INF/classes/struts.xml:74:83 
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) 
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) 
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) 
... 
... 
Caused by: Action class [aoc.action.signature.CompletePDFUpload] not found - action - file:/C:/apps/apache-tomcat-6.0.39/webapps/validador/WEB-INF/classes/struts.xml:74:83 

我希望有人錯過了檢查正確的日誌和解決像我一樣簡單的問題。