The web application [/struts2_0100] created a ThreadLocal with key of type
来源:互联网 发布:白兔糖电影知乎 编辑:程序博客网 时间:2024/05/20 15:41
引用:
严重: 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"/>
这个监听给关了
本人在开发过程中,由于以前用的是Tomcat 5.5的版本,所以没怎么遇到这个问题,今天由于其他功能的需要,装了个 6.0 的版本,一运行就出现了这个问题,也许每个人的情况会有些不一样,在此就不多说了。
方法二,今天用的就是这个方法,还蛮有效的。
至于第三个方法,本人没试过,不知道效果怎样。
如果有朋友还知道其他更好的方法,欢迎一起讨论。。。
严重: 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"/>
这个监听给关了
本人在开发过程中,由于以前用的是Tomcat 5.5的版本,所以没怎么遇到这个问题,今天由于其他功能的需要,装了个 6.0 的版本,一运行就出现了这个问题,也许每个人的情况会有些不一样,在此就不多说了。
方法二,今天用的就是这个方法,还蛮有效的。
至于第三个方法,本人没试过,不知道效果怎样。
如果有朋友还知道其他更好的方法,欢迎一起讨论。。。
0 0
- The web application [/struts2_0100] created a ThreadLocal with key of type
- The web application [/struts2_0100] created a ThreadLocal with key of type
- 严重: The web application [/native] created a ThreadLocal with key of type
- tomcat加载时报The web application [/dmscs] created a ThreadLocal with key of type
- The web application [/struts1] created a ThreadLocal with key of type
- 关于The web application [/cdmaPlus] created a ThreadLocal with key of type
- The web application [/XinRui02] created a ThreadLocal with key of type [com.opensymphony.xwork2.inje
- The web application [/HOTEL] created a ThreadLocal with key of type
- Tomcat6集成Red5后,关闭时报错The web application [] created a ThreadLocal with key of type [null]的解决方法
- The web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1807b9
- A web application created a ThreadLocal with key of type [null]
- Struts2 A web application created a ThreadLocal with key of type
- struts2关于A web application created a ThreadLocal with key of type 异常解决办法
- struts2关于A web application created a ThreadLocal with key of type 异常解决办法
- struts2关于A web application created a ThreadLocal with key of type 异常解决办法
- SSH-A web application created a ThreadLocal with key of type [null]
- struts2关于A web application created a ThreadLocal with key of type 异常解决办法
- struts2关于A web application created a ThreadLocal with key of type 异常解决办法
- C# WebBrowser 编程 使用mshtml读取网页内容
- Hdu 1521 排列组合 指数型母函数
- Nginx优化(2)
- visual studio里的几个输出的设置及一些文件的作用
- org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsav
- The web application [/struts2_0100] created a ThreadLocal with key of type
- 如何删除List中的重复元素
- enum weekday a,b,c;
- hadoop HDFS 常用shell命令
- java 正则表达式 匹配时间串
- 外网访问内网应用之内网映射外网实现过程
- 让图片垂直居中
- C++与C语言不同之三——默认参数
- 三大Web服务器对比(1)