activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlo cancellieri <carlo.cancelli...@geo-solutions.it>
Subject Re: 5.8.0 Unable to shutdown embedded broker
Date Sun, 16 Mar 2014 02:16:42 GMT
More:

At tomcat shutdown I get: (note that all the brokers, connections and
Transport are automatically created by the PooledConnectionFactory with the
passed URL so they should be ideally closed with a close() on the
PooledConnectionFactory, right?)

SEVERE: The web application [/geoserver] created a ThreadLocal with key of
type [org.apache.log4j.helpers.ThreadLocalMap] (value
[org.apache.log4j.helpers.ThreadLocalMap@3fdfbc7f]) and a value of type
[java.util.Hashtable] (value [{activemq.broker=tomcat1,
activemq.connector=vm://tomcat1}]) but failed to remove it when the web
application was stopped. This is very likely to create a memory leak.

I've also performed a test with useShutdownHook=true with no success.

Same result with ActiveMQ 5.10-SNAPSHOT

Cheers,
Carlo


2014-03-16 2:48 GMT+01:00 carlo cancellieri <
carlo.cancellieri@geo-solutions.it>:

> In addiction to below information I'd like to add:
>
> 1. I'm using PooledConnectionFactory to get connection and at the tomcat
> shutdown end I call stop() which should stops all the opened connecitons.
> 2. I've just tested the same code with the 5.9.0 with no success.
>
> Someone can help me?
>
> Cheers,
> Carlo
>
>
> ---------- Forwarded message ----------
> From: carlo cancellieri <geo.ccancellieri@gmail.com>
> Date: 2014-03-14 19:55 GMT+01:00
> Subject: 5.8.0 Unable to shutdown embedded broker
> To: users@activemq.apache.org
>
>
> Hi all,
>  I'm having some problem during the Tomcat shutdown.
> I'm using ActiveMQ-5.8 and my brokerURL are:
>
>
> brokerURL=peer\://geoserver/tomcat1?soTimeout\=3000&transport.soTimeout\=3000&daemon\=true&transport.daemon\=true&broker.persist\=false&useShutdownHook\=false&maxReconnectDelay\=200
>
>
> brokerURL=peer\://geoserver/tomcat2?soTimeout\=3000&transport.soTimeout\=3000&daemon\=true&transport.daemon\=true&broker.persist\=false&useShutdownHook\=false&maxReconnectDelay\=200
>
> Note that the the destination for the producers is a VirtualTopic.
>
> I can successfully consume the messages but on shutdown tomcats hangs.
>
> What's wrong?
>
> This is the stack of a Tomcat instance.
>
> Java HotSpot(TM) Client VM[168.202.25.104:1044]
>  Thread [DestroyJavaVM] (Running)
> Thread [pool-3-thread-1] (Running)
>  Daemon Thread [http-8080-5] (Running)
> Daemon Thread [http-8080-4] (Running)
>  Daemon Thread [http-8080-3] (Running)
> Daemon Thread [http-8080-2] (Running)
>  Daemon Thread [http-8080-1] (Running)
> Daemon Thread [TP-Processor4] (Running)
>  Daemon Thread [http-8080-Acceptor-0] (Running)
> Daemon Thread [ActiveMQ Transport: tcp:///168.202.25.104:64338@64324]
> (Running)
>  Thread [ActiveMQ Transport: tcp://CIO174/168.202.25.104:64331@64337]
> (Running)
> Daemon Thread
> [Notifier-MulticastDiscoveryAgent-listener:DiscoveryNetworkConnector:NC:BrokerService[tomcat1]]
> (Running)
>  Daemon Thread
> [MulticastDiscoveryAgent-listener:DiscoveryNetworkConnector:NC:BrokerService[tomcat1]:Thread-6]
> (Running)
>  Daemon Thread
> [MulticastDiscoveryAgent-advertise:tcp://CIO174:64324:Thread-5] (Running)
> Daemon Thread [ActiveMQ Transport Server: tcp://0.0.0.0:0] (Running)
>  Daemon Thread [ActiveMQ Transport Server Thread Handler: tcp://0.0.0.0:0]
> (Running)
>
>
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Dott. Carlo Cancellieri
> @cancellieric
> Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> mobile: +39 3371094494
> fax:   +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
>
> --
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK for
> more information.
> ==
>
> Dott. Carlo Cancellieri
> @cancellieric
> Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:   +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>



-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK for
more information.
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

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