activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liny <>
Subject Re: [Old issue] Memory leak after stop web application in Tomcat
Date Mon, 16 Jul 2012 09:49:42 GMT
Hi gtully:

I made a war with source code to reproduce the problem, please download it
from My
GoogleDoc .
The Tomcat version is 6.0.33 or above, but I use Tomcat 7.0.28.
Before starting this web app, you need to setup a broker TCP address in

Change to your own broker.
After web app is started, you can see below main page: 

And live threads are: 

The reproduce steps are:
1. Click [Start getting text msg from topic], it will start listening msg
from simpleTopic topic. And some ActiveMQ threads are shown as below: 

2. You can go to ActiveMQ web console to send fake msg into simpleTopic.
(optional) Like below: 

3. Click [Stop getting text msg from topic] will do below methods (in stop()
of \WEB-INF\classes\com\foo\

4. Go to Tomcat manager to stop this web app. Tomcat will show some logs
like below:

After web app is stopped, these 4 ActiveMQ threads are still running: 

Hope these can help analysis.
Let me know if any!
Thank you very much.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message