struts2关于A web application created a ThreadLocal with key of type 异常解决办法
时间:2014-12-15 23:31 来源:linux.it.net.cn 作者:IT
严重: 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 itwhen the web application was stopped. To prevent a memory leak, theThreadLocal has been forcibly removed.
看看老外的这篇,好像就是在讲这个问题,原因大概是说tomcat6.025之后引入了一种内存泄露的检查机制,会把不能垃圾收集的对像做日志
第一种解决办法:使用低于6版本的tomcat
第二种解决办法:在tomcat的server.xml文件中把<ListenerclassName="org.apache.catalina.core.JreMemoryLeakPreventionL istener"/>这个监听给关了
(责任编辑:IT)
严重: 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 itwhen the web application was stopped. To prevent a memory leak, theThreadLocal has been forcibly removed.
第一种解决办法:使用低于6版本的tomcat
第二种解决办法:在tomcat的server.xml文件中把<ListenerclassName="org.apache.catalina.core.JreMemoryLeakPreventionL (责任编辑:IT) |