Mojarra-WebResourceMonitor-1-thread-1内存泄漏

时间:2018-04-16 01:45:40

标签: java tomcat tomee tomee-7

关于

的问题
The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it.

我已经用this回答解决了这个问题,但还有另一个内存泄漏仍未解决:

The web application [] appears to have started a thread named [Mojarra-WebResourceMonitor-1-thread-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)

我可以知道这个内存泄漏的原因是什么以及如何解决它?

以下是我使用的库列表:

  • jsf-api 2.2.13
  • jsf-impl 2.2.13
  • mysql-connector-java 5.1.31
  • TomEE 7.0.4

0 个答案:

没有答案