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 [ch.qos.logback.core.UnsynchronizedAppenderBase$1@1a306ee]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
 

http://confluence.atlassian.com/pages/viewpage.action?pageId=218275753
原因tomcat 6.025之后引入了一种内存泄露的检查机制,会把不能垃圾收集的对像做日志。

 

第一种解决办法:

使用低于6版本的tomcat

第二种解决办法:

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

这个监听给关了

第三种解决方法:

openmeetings的安装说明里又说,在参数后面加上 -Xms512m -Xmx1024M

转载自:https://blog.csdn.net/wuhongle/article/details/6055764

You may also like...