Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2BF8210D90 for ; Sun, 16 Mar 2014 02:17:30 +0000 (UTC) Received: (qmail 23825 invoked by uid 500); 16 Mar 2014 02:17:29 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 23751 invoked by uid 500); 16 Mar 2014 02:17:29 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 23743 invoked by uid 99); 16 Mar 2014 02:17:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2014 02:17:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of geo.ccancellieri@gmail.com designates 209.85.217.174 as permitted sender) Received: from [209.85.217.174] (HELO mail-lb0-f174.google.com) (209.85.217.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2014 02:17:24 +0000 Received: by mail-lb0-f174.google.com with SMTP id u14so2755039lbd.5 for ; Sat, 15 Mar 2014 19:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=z4gVXHif8CvV1HCWlxJa5O5Yko+c9EysEMT7AyJucwM=; b=BN4v6oE03cu7FUWlxBN7xgGdayz9eS5iv0iUbCM+8ECYufEMZUciLL9eMU1Npqfqoi 479Wfs/KS77QBDJ+0NQl3EEo0usNMNnyzExeq4oAazO0NMNuIZstje9cdA/v2Nzkr4xi TxUckYJcvLLhL6R0VXM5rmTxaJThYr0zjp70cnW3ENX561gM4op78XBajUl6aLP+DHuC cNUMaTXFgJe3mBw1ASpgfJZxsRhIGTgYR9ia1ZRyk+h7ZB9yldbg62syg+hlbY7yIDCE 6nXYZspIBldpO3XxF5nrWtsfC8+AGJTnjj3EUCwD8SwKBDz+XEI40KyfJZVhXVvRowIf wzvg== X-Received: by 10.112.154.202 with SMTP id vq10mr10876364lbb.3.1394936223466; Sat, 15 Mar 2014 19:17:03 -0700 (PDT) MIME-Version: 1.0 Sender: geo.ccancellieri@gmail.com Received: by 10.114.243.71 with HTTP; Sat, 15 Mar 2014 19:16:42 -0700 (PDT) In-Reply-To: References: From: carlo cancellieri Date: Sun, 16 Mar 2014 03:16:42 +0100 X-Google-Sender-Auth: MFV9ZnryyMIe8IC2VGwkb20onI8 Message-ID: Subject: Re: 5.8.0 Unable to shutdown embedded broker To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=089e0112bf441588c904f4afe6f4 X-Virus-Checked: Checked by ClamAV on apache.org --089e0112bf441588c904f4afe6f4 Content-Type: text/plain; charset=ISO-8859-1 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 > 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 ------------------------------------------------------- --089e0112bf441588c904f4afe6f4--