skermani created AMQ-6474:
-----------------------------

             Summary: Memory leak
                 Key: AMQ-6474
                 URL: https://issues.apache.org/jira/browse/AMQ-6474
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.14.1, 5.13.0, 5.12.0
         Environment: Spring
            Reporter: skermani
             Fix For: 5.11.4


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.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to