Every time when restarting web application in Tomcat Manager I get messages:
SEVERE: The web application [/sms] appears to have started a thread named [ActiveMQ Task-3] but has failed to stop it. This is very likely to create a memory leak.
With every restart PermGen space is increased and finally i got OutOfMemory error for PermGen space.
I use Spring DefaultMessageListenerContainer, and it's shutdown method closes properly receivers threads. What is "ActiveMQ Task-3" thread and how to close it properly ?