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 8740B7E6D for ; Tue, 27 Dec 2011 21:32:40 +0000 (UTC) Received: (qmail 22004 invoked by uid 500); 27 Dec 2011 21:32:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21967 invoked by uid 500); 27 Dec 2011 21:32:40 -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 21959 invoked by uid 99); 27 Dec 2011 21:32:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 21:32:40 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of meadandale@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2011 21:32:33 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Rfed2-0008Fl-L1 for users@activemq.apache.org; Tue, 27 Dec 2011 13:32:12 -0800 Date: Tue, 27 Dec 2011 13:32:12 -0800 (PST) From: chudak To: users@activemq.apache.org Message-ID: <1325021532643-4238292.post@n4.nabble.com> In-Reply-To: <1307613989531-3585092.post@n4.nabble.com> References: <1306927111700-3565540.post@n4.nabble.com> <1307014862475-3568151.post@n4.nabble.com> <1307613989531-3585092.post@n4.nabble.com> Subject: Re: Transaction not started XA problems MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Did you ever solve this problem? I've been using atomikos, spring DMLC and activemq for several years. Recently I started using camel and we are having this exact same problem. With the camel endpoints polling (which effectively doubled the number of message listener containers I previously had) empty queues I am having this same problem where after 12 or so hours the activemq heap blows up (I have mine set at 512MB) and then activemq starts throwing errors and my application crashes and cannot recover (cannot reconnect to the activemq broker). James Black wrote > > Hi > > ok the problems seems to be that the connection is getting dropped by the > ActiveMQ broker on the server. > > I have now verified that the issue occurs when ActiveMQ runs out of heap > available. > > I have ran two specific tests. > > Note: Although these tests do not allocate that much heap to AMQ we have > seen these issues with much more heap available and believe they would > occur eventually no matter how much heap was allocated. > > === Test 1 === > > Connected our client Tomcat applications to the broker and left them > running overnight. > > I configured the AMQ instance to have only 90MB of heap available to speed > up the process. > With nothing at all occurring on the queues and single topic, the ActiveMQ > installation ran out of heap memory after two hours. > > Again there is nothing on the queues or topic during this time. > > All that is happening is that the Spring DMLC are polling for new > messages. > > This then caused the JMS errors related to Atomikos in the application > logs. > > You can see the GC trying desperately to reclaim memory as the limit is > approached but you can also see a gradual decrease in the amount of memory > that can be GC'ed as time progresses. > > === Test 2 === > > Connected out Tomcat client applications to the broker and ran tests that > pass hundreds of messages per second through the channels. > > Again with a setting of 90MB of heap available to ActiveMQ after a period > of 30 minutes AMQ ran out of memory and we could see that GC was making no > difference. I.e. as in test 1 the memory that could be reclaimed with GC > was decreasing as time went on. > > We are using persistent storage for our queue and single topic. > Our topic is also durable. > > There is very little in the AMQ server logs, occasionally the Out of > memory error will be logged and the disconnection when the heap runs out > can be seen. > > Has anyone seen similar behaviour or have any suggestions as to where to > go next? > > I have application snapshots (VisualVM) of this issue occurring in test 1. > > Thanks to Gary Tully for his help and suggestions previously :> > > Thanks, > > James > -- View this message in context: http://activemq.2283324.n4.nabble.com/Transaction-not-started-XA-problems-tp3565540p4238292.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.