Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 63246 invoked from network); 22 Aug 2008 04:11:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2008 04:11:54 -0000 Received: (qmail 14885 invoked by uid 500); 22 Aug 2008 04:11:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 14869 invoked by uid 500); 22 Aug 2008 04:11:51 -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 14858 invoked by uid 99); 22 Aug 2008 04:11:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2008 21:11:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bruce.snyder@gmail.com designates 74.125.44.157 as permitted sender) Received: from [74.125.44.157] (HELO yx-out-1718.google.com) (74.125.44.157) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2008 04:10:52 +0000 Received: by yx-out-1718.google.com with SMTP id 3so163252yxi.86 for ; Thu, 21 Aug 2008 21:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tA/uItFCcW+BpDkVOt7vmPqwAdB4qE0vOi9BIpoi2Eg=; b=ueie5yLfTpCoRdNziQOehfR/flApME2T0O4nadFKs8sE/cCaQznIbt9iaYIJHCAAp3 azOPux+5xRX3qqNc4163H/bec81hJvkD/G2PerpQ0bsHBIJX0iIsghlDshRmu/lSRI8A OxWUweaW/ZqT/HA4Kh+eavJuxYnbkZi3K5kP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hnzHX8zCTMbAlSt4zgXFykg8A9bKp4xlMMG4+fBvhY//AVGNOupQBUNND44ZEjaD83 zSkZt3e4ai3nGcB3rZWA6uETRpj6tltYSJoxxtTWn8EX/0SmCGzia6+BTWROy/rAA8oQ T9VlfO8XQbySvXx9UHSqblnqoRN/Aj+2uKQ2Q= Received: by 10.142.125.4 with SMTP id x4mr217671wfc.349.1219378280169; Thu, 21 Aug 2008 21:11:20 -0700 (PDT) Received: by 10.142.14.7 with HTTP; Thu, 21 Aug 2008 21:11:20 -0700 (PDT) Message-ID: <7b3355cb0808212111y63e11b3i187919f6c847939e@mail.gmail.com> Date: Thu, 21 Aug 2008 22:11:20 -0600 From: "Bruce Snyder" To: users@activemq.apache.org, users@servicemix.apache.org Subject: Re: ActiveMQ causes producer to hang when no consumer on topic after a few minutes. In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7b3355cb0808201303q5c5f7389o297ef12a63e4ddaa@mail.gmail.com> <7b3355cb0808201405m3e7efa4ft7a33ffd1f05da56@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Aug 21, 2008 at 9:43 PM, Ryan Moquin wrote: > Hi Bruce, > > I tried my service with the two settings: > > deliveryMode="1" > timeToLive="1000" > > The scenario is an external JMS client sends a message to a JMS consumer SU > in servicemix. It forwards that to my service which does some processing > with the incoming message, and then creates a new message that it sends to a > JMS provider SU. I ran this using Servicemix 3.3. > > I loaded up jconsole and watched my provider topic. As soon as my Topic > size hit 1321, my service all of a sudden stopped receiving messages from my > external sender and went completely silent. If I look at the topic that my > external sender, is sending to, it is still filling up with messages that > are no longer being received by my hanging service. When my external sender > finished, I see that 1500 messages were enqueued and dequeued on my consumer > JMS SU, but only 1340 were enqueued on my provider JMS SU. > > So, I did a stack dump on the JVM and noticed there are 35 hanging threads > that are all hanging trying to send a message to the JMS provider. So > apparently, the: > > > > is working and I just didn't notice that there were 35 hanging threads. The > problem is, I guess once enough threads are tied up because the messages > can't be sent, then everything starts hanging. I have the message time to > live sent to a 1000. You said that it worked in 5.1, but it doesn't seem to > be working for me. Is that value really in milliseconds? Is there > something else I need? The non persistent delivery mode obviously isn't > working either. Do I have any options for preventing this situation from > happening? I don't see any other options in the config I can try. > > Here is the stack dump that is the same for all 35 threads: > > "pool-component.servicemix-jms-thread-3" prio=6 tid=0x39a4b400 nid=0x2724 > waiting on condition [0x3f58e000..0x3f58fb14] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x1774ee48> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:19 I'm thinking that the issues you're experiencing are ServiceMix related, not ActiveMQ related. It sounds like messages may not be consumed fast enough which could cause the slowdown you describe, but I'm not sure yet. I'd like to see how you have the thread pooling configured in ServiceMix, so please post your servicemix.properties file. Also, please provide two full thread dumps (kill -3 ) of ServiceMix that are, maybe say, 20-30 seconds apart. These three items should help us to troubleshoot the situation a bit further. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E