activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: [Memory leak ] The web application appears to have started a thread.
Date Tue, 16 Apr 2013 22:10:59 GMT
How are you deploying ActiveMQ? How is it being gracefully shutdown?


On Tue, Apr 16, 2013 at 2:22 PM, Leonardo Torres
<leonardotorres9@gmail.com>wrote:

> Hi guys,
>
> I´m using AMQ 5.7.0 with Spring 3.0.1 and  tomcat 7.0.19 as servlet
> container. So, when my application starts, it´s ok, but when the tomcat
> stop, I see in the console the follow lines:
>
>
> "SEVERE: The web application [] 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.
> Apr 16, 2013 2:43:21 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [] is still processing a request that has yet
> to finish. This is very likely to create a memory leak. You can control "
>
> How can I stop these threads ?
>
> My jms-context.xml (Spring context) :
>
> <bean id="connectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory">
>   <property name="brokerURL" value="tcp://x.x.x.x:61616?daemon=true"/>
> </bean>
>
> <bean id="poolConnection"
> class="org.apache.activemq.pool.PooledConnectionFactory">
>    <property name="connectionFactory"  ref="connectionFactory"/>
> </bean>
>
> Thank´s in advance
> --
> Obrigado
> Leonardo Torres.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message