Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96EE18176 for ; Tue, 13 Sep 2011 13:41:31 +0000 (UTC) Received: (qmail 45644 invoked by uid 500); 13 Sep 2011 13:41:31 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 45617 invoked by uid 500); 13 Sep 2011 13:41:31 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 45609 invoked by uid 99); 13 Sep 2011 13:41:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 13:41:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 13:41:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7251395624 for ; Tue, 13 Sep 2011 13:41:09 +0000 (UTC) Date: Tue, 13 Sep 2011 13:41:09 +0000 (UTC) From: "Claudio Corsi (JIRA)" To: dev@activemq.apache.org Message-ID: <407319443.21986.1315921269448.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1059264222.26263.1315413190016.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3487) Topic message rollback memory leak (XA transaction) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103626#comment-13103626 ] Claudio Corsi commented on AMQ-3487: ------------------------------------ Thomas, can you re-run the leak and generate two or more heap dumps from that run. Where one is generated during the beginning of the run and one at the end of the run. Attaching those heap dumps to this issue might allow us to determine the leak culprit. > Topic message rollback memory leak (XA transaction) > --------------------------------------------------- > > Key: AMQ-3487 > URL: https://issues.apache.org/jira/browse/AMQ-3487 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.4.2 > Environment: Glassfish 3.1 > Reporter: Thomas Bailey > > We have Glassfish sending messages to an activeMQ topic using an XA Transaction. This seems to work correctly when transactions are committing. > However, *every* time we have a transaction rollback we have a slight memory leak from activeMQ. After 1000 rollbacks our 1mb queue memory is full. > The logs show: > 2011-06-06 11:50:06,842 | DEBUG | Setting up new connection id: ID:HOTCPC8567-53061-1307352319478-0:338, address: /127.0.0.1:56674 | org.apache.activemq.broker.TransportConnection | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,843 | DEBUG | localhost adding consumer: ID:HOTCPC8567-53061-1307352319478-0:338:-1:102 for destination: topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic | org.apache.activemq.broker.region.AbstractRegion | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,846 | DEBUG | XA Transaction new/begin : XID:4871251:c51600003f724564484f54435043383536372c7365727665722c5033373030:484f54435043383536372c7365727665722c50333730302c00 | org.apache.activemq.transaction.XATransaction | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,849 | DEBUG | Main:memory:topic://createBookingTopic:memory: usage change from: 9% of available memory, to: 10% of available memory | org.apache.activemq.usage.Usage | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,852 | DEBUG | XA Transaction rollback: XID:4871251:c51600003f724564484f54435043383536372c7365727665722c5033373030:484f54435043383536372c7365727665722c50333730302c00 | org.apache.activemq.transaction.XATransaction | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,884 | DEBUG | localhost removing consumer: ID:HOTCPC8567-53061-1307352319478-0:338:-1:102 for destination: topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic | org.apache.activemq.broker.region.AbstractRegion | ActiveMQ Transport: tcp:///127.0.0.1:56674 > 2011-06-06 11:50:06,885 | DEBUG | remove connection id: ID:HOTCPC8567-53061-1307352319478-0:338 | org.apache.activemq.broker.TransportConnection | ActiveMQ Transport: tcp:///127.0.0.1:56674 > So no obvious issue in ActiveMQ. Also, this does not happen when we use a queue and the transaction is rolled back. > This is a serious problem for us as we are needing to restart activeMQ on a daily basis to keep the production servers running. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira