Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36198 invoked from network); 8 Oct 2009 08:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 08:30:56 -0000 Received: (qmail 6977 invoked by uid 500); 8 Oct 2009 08:30:56 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6929 invoked by uid 500); 8 Oct 2009 08:30:56 -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 6919 invoked by uid 99); 8 Oct 2009 08:30:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 08:30:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajdavies@gmail.com designates 74.125.92.148 as permitted sender) Received: from [74.125.92.148] (HELO qw-out-1920.google.com) (74.125.92.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 08:30:44 +0000 Received: by qw-out-1920.google.com with SMTP id 14so1841157qwa.26 for ; Thu, 08 Oct 2009 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=5BVHxRYlmxIlYKqeP4BYh0s4/Jh6eveSsVJdZ6Xr3kM=; b=rR9/VwbmaJ9B07kJnwOtZYaXMuWSgTS4uvRYQKi1G/KNmp6eRnnVOCc0ixvmc0uw5y a9Se5CUaSi7X1u15Vq8brvtRE+bKzDzHLICkFWOgUOEymBJHU5LSIwcWHmIx2OkIFopS 4N04hEc6DTJLlXAyxGTBU+Efb19BiOiet/NTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=FbxTk0/JwVfuy8e7c1qkyfOa8WiievpQ/KiQMfEfqtKe/2owM2BOyWkWSK5eGUZQgT zd6Uais+bmLqEmPP2JPSt6upYQNAU7sDO3ntV4phTWiFQEpiSOxCNJLNi9it3vSEn4jk MPaoynx1REKWO7tdWdZw29nUy9IKS7oCrM6mw= Received: by 10.224.36.104 with SMTP id s40mr798764qad.296.1254990622943; Thu, 08 Oct 2009 01:30:22 -0700 (PDT) Received: from ?192.168.1.84? (host86-164-8-149.range86-164.btcentralplus.com [86.164.8.149]) by mx.google.com with ESMTPS id 2sm315980qwi.9.2009.10.08.01.30.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Oct 2009 01:30:20 -0700 (PDT) Message-Id: <9A2BFEFA-2689-4A93-AF4F-B6183F53104E@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: <25792204.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Latency causing throughput problems in ActiveMQ 5.2 Date: Thu, 8 Oct 2009 09:30:17 +0100 References: <25777286.post@talk.nabble.com> <25791008.post@talk.nabble.com> <25791255.post@talk.nabble.com> <25792204.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org You should try increasing the prefetchSize for the network connection - by default its 1000 - setting it to a higher value should help - On 7 Oct 2009, at 19:52, nkleinsch wrote: > > Yes, I'm using the ActiveMQ performance module producer. It prints > back this > line on startup: > > INFO: Creating producer to: topic://topic.work.complete.main.0 with > non-persistent delivery. > > On our application I've also set non-persistent delivery and are > seeing the > same performance. > > - Nick > > > Joe Fernandez wrote: >> >> Are you setting the delivery mode on the publisher to be non- >> persistent? >> >> Joe >> http://www.ttmsolutions.com >> >> >> nkleinsch wrote: >>> >>> 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-tp25777286p25792204.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Rob Davies http://twitter.com/rajdavies I work here: http://fusesource.com My Blog: http://rajdavies.blogspot.com/ I'm writing this: http://www.manning.com/snyder/