`
kalogen
  • 浏览: 868047 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

struts2关于A web application created a ThreadLocal with key of type 异常解决办法

    博客分类:
  • Java
阅读更多

严重: A web application created a ThreadLocal with key of type [null] (value [com.sun.faces.config.ConfigureListener$1@1c4e792]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.

?

http://confluence.atlassian.com/pages/viewpage.action?pageId=218275753
看看老外的这篇,好像就是在讲这个问题,原因大概是说tomcat 6.025之后引入了一种内存泄露的检查机制,会把不能垃圾收集的对像做日志

?

第一种解决办法:

使用低于6版本的tomcat

第二种解决办法:

在tomcat的server.xml文件中把
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>

这个监听给关了

分享到:
评论
3 楼 allenny 2011-08-01  
我试了第二种办法,不起作用,还是检查
2 楼 kalogen 2011-02-18  
http://java.csdn.net/a/20100617/267660.html
1 楼 kalogen 2011-02-18  
用tomcat7试试

相关推荐

Global site tag (gtag.js) - Google Analytics