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 A72149F2A for ; Thu, 14 Jun 2012 06:16:48 +0000 (UTC) Received: (qmail 94505 invoked by uid 500); 14 Jun 2012 06:16:48 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 94322 invoked by uid 500); 14 Jun 2012 06:16:46 -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 94173 invoked by uid 99); 14 Jun 2012 06:16:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 06:16:44 +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 (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of mickhayes@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2012 06:16:39 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Sf3Lv-0007xs-5N for users@activemq.apache.org; Wed, 13 Jun 2012 23:16:19 -0700 Date: Wed, 13 Jun 2012 23:16:19 -0700 (PDT) From: mickhayes To: users@activemq.apache.org Message-ID: <1339654579158-4653278.post@n4.nabble.com> In-Reply-To: <1339608913650-4653260.post@n4.nabble.com> References: <1339608913650-4653260.post@n4.nabble.com> Subject: Re: Consumer performance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I would fiddle with the prefetch limits to begin with. To see if it makes a difference, you can increase the queue prefetch limit for your consumers as much as you can (subject to heapspace constraints on the consumers). Estimate the extra heapspace needed to hold the prefetched messages in the consumer by prefetch_limit x message_size = extra and make sure you have plenty. http://activemq.apache.org/what-is-the-prefetch-limit-for.html You say the performance-per-consumer drops significantly as you add consumers... Just to be sure: are your consumers sharing no resources (apart from the broker on a different box?) Are your messages reasonably small and your network pipes sufficiently large? As well as info on the prefetch limit, there is more tuning information in ActiveMQ in Action, section 13.3 "Optimizing message consumers" In particular, you should look at DUPS_OK_ACKNOWLEDGE instead of the auto ack that you are using. ----- Michael Hayes B.Sc. (NUI), M.Sc. (DCU), SCSA SCNA -- View this message in context: http://activemq.2283324.n4.nabble.com/Consumer-performance-tp4653260p4653278.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.