鍍金池/ 問答/Linux  網(wǎng)絡安全/ tomcat undeploy 異常

tomcat undeploy 異常

09-Mar-2018 14:30:20.697 WARNING [http-nio-11000-exec-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [kbs-qa] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
09-Mar-2018 14:30:20.698 WARNING [http-nio-11000-exec-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [kbs-qa] appears to have started a thread named [Log4j2-TF-3-AsyncLoggerConfig-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)

回答
編輯回答
萌小萌

可以試試在 tomcat/conf/context.xml中修改一下:

<Context antiResourceLocking="true">
2018年8月26日 05:40