`

A web application created a ThreadLocal with key of type [null]

    博客分类:
  • 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"/>
 
这个监听给关了
 
如果还解决不了,重启一下机器试试

分享到:
评论
2 楼 海漂大侠 2012-08-22  
恩,同意一楼的观点,我也是遇到了这个问题,把服务器停下,重新部署后就没事了。
1 楼 ilemma 2011-10-13  
出现这个原因是因为你是在服务器为STOP的情况下,进行的重新部署,先STOP之后再部署,就没事了

相关推荐

Global site tag (gtag.js) - Google Analytics