Tomcat中报错:This is very likely to create a memory leak解决方法 - J2EE

分类:软件开发| 发布:佚名| 查看: | 发表时间:2014/1/7

Tomcat中报:This is very likely to create a memory leak
2010-12-20 15:13:25 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/tiger] created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@b98117]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@ca3147]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak. @camnpr

------解决方案--------------------
解决方式任选一种

1 把tomcat降级为6.0.24以下的版本 

2 将tomcat升级为7.0.6以上的版本 

3 在server.xml中去掉JreMemoryLeakPreventionListener的listener 

http://wiki.apache.org/tomcat/MemoryLeakProtection 

365据说看到好文章不转的人,服务器容易宕机
原创文章如转载,请注明:转载自郑州网建-前端开发 http://camnpr.com/
本文链接:http://camnpr.com/software-dev/824.html