Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 26594 invoked from network); 7 Oct 2009 17:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Oct 2009 17:33:34 -0000 Received: (qmail 73527 invoked by uid 500); 7 Oct 2009 17:33:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 73504 invoked by uid 500); 7 Oct 2009 17:33:34 -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 73494 invoked by uid 99); 7 Oct 2009 17:33:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 17:33:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 17:33:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MvaNr-00052q-Kh for users@activemq.apache.org; Wed, 07 Oct 2009 10:33:03 -0700 Message-ID: <25791008.post@talk.nabble.com> Date: Wed, 7 Oct 2009 10:33:03 -0700 (PDT) From: nkleinsch To: users@activemq.apache.org Subject: Re: Latency causing throughput problems in ActiveMQ 5.2 In-Reply-To: <25777286.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nkleinsch@lucidmedia.com References: <25777286.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Adding some of the things I've tried in case they'd be of help to other people in the future. - Disabled producer flow control (http://activemq.apache.org/producer-flow-control.html) - Did nothing for client throughput - Switched pendingSubscriberPolicy to a VM cursor (http://activemq.apache.org/message-cursors.html) - Did nothing for client throughput - Tried changing the prefetch limit (http://activemq.apache.org/what-is-the-prefetch-limit-for.html) - Did nothing for client throughput. Given that the default was the max value for nonpersistent topics, I didn't think this would do anything, but tried it just in case. - Set Async Sends on the producer (http://activemq.apache.org/async-sends.html) - Did nothing for client throughput. This was also the default, but checked it to make sure. Is there anything else I haven't tried here that could help improve performance? I've read through all the FAQs and performance documents and am running out of ideas. - Nick nkleinsch wrote: > > Hi all, > > I'm having throughput issues on ActiveMQ 5.2 and was hoping for some tips > to improve performance. We're sending out messages on a topic at an > average rate of around 150/sec. The messages are object messages that vary > in size, but range up to 5 kilobytes. We're using a network of brokers > between two sites, with all the producers in one site and the consumers in > the other. We're seeing memory fill up on the producing site broker and > the "messages received" falling behind "messages sent", implying that > we're not able to send them over to the receiving side broker quickly > enough. These messages don't need guaranteed delivery, so we're not using > transactions or durable subscriptions. > > I set up a test between the two sites using the ActiveMQ Performance > Module. I'm using a stock ActiveMQ 5.2 and the ActiveMQ Performance Module > from the latest SVN. I'm running ActiveMQ on a server in site 1. If I run > the producer and consumer on another server in site 1, I get a system > average throughput of 5184. If I run the same test, except with the client > on a similarly configured server in site 2, I get a throughput of 112. > > The transfer rate between the two servers is upwards of 3 MB/s, so I > assume it isn't a bandwidth limitation. The latency between the two sites > (measured using ping) is 90ms. Why would latency have such a large effect > on my message throughput rate? Are there any settings I could change that > would help my performance? > > Thanks, > Nick Kleinschmidt > -- View this message in context: http://www.nabble.com/Latency-causing-throughput-problems-in-ActiveMQ-5.2-tp25777286p25791008.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.