Details
Description
Hello,
when undeploying a Spring (4) webapp (JDK 1.8.101), we got a memory leak error message on a thread.
AVERTISSEMENT: The web application [venus] appears to have started a thread named [ActiveMQ InactivityMonitor Worker] 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(Unknown Source)
java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source)
java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source)
java.util.concurrent.SynchronousQueue.poll(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
oct. 20, 2016 2:50:43 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
when using an older version of active MQ 5.11.4 we don't get the error.
We notice the shutwon of factory thread pool is not made anymore (
inside class AbstractInactivityMonitor , method stopMonitorThreads
this line has been removed: ThreadPoolUtils.shutdown(ASYNC_TASKS);
Could you fix it.
Attachments
Issue Links
- relates to
-
AMQ-6482 Possible thread leak ?
- Resolved