码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat关闭时Log4j2报错 Log4j Log4j2-TF-4-Scheduled-1 memory leak

时间:2017-09-23 20:11:20      阅读:1178      评论:0      收藏:0      [点我收藏+]

标签:rac   web app   clear   jar   work   obj   lex   lang   license   

出错信息:

23-Sep-2017 17:43:18.964 警告 [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [license] appears to have started a thread named [Log4j2-TF-4-Scheduled-1] 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)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

网上找了好多地方,后来偶然间在一个地方看到Make sure you are including log4j-web in your build.

把log4j-web-2.9.0.jar上传过去就可以了。不再报错

tomcat关闭时Log4j2报错 Log4j Log4j2-TF-4-Scheduled-1 memory leak

标签:rac   web app   clear   jar   work   obj   lex   lang   license   

原文地址:http://www.cnblogs.com/passedbylove/p/7581918.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!