您的位置:首页 > 移动开发

The web application [/struts2_0100] created a ThreadLocal with key of type

2013-05-01 21:27 549 查看
引用:

严重: The web application [/struts2_0100] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10]

(value[com.opensymphony.xwork2.inject.ContainerImpl$10@169bc15]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@2cb44]) but failed to remove it when the web application was stopped. This is very likely
to create a memory leak.

有些地方大概是说tomcat 6.025之后引入了一种内存泄露的检查机制,会把不能垃圾收集的对像做日志

解决办法:

法一:使用低于tomcat 6.0的版本

法二:先将服务关掉,然后部署工程,再启动服务。

法三:

在tomcat的server.xml文件中把

<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/[b]> [/b]

这个监听给关了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐