Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 76700 invoked from network); 22 Sep 2006 16:59:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2006 16:59:45 -0000 Received: (qmail 38974 invoked by uid 500); 22 Sep 2006 16:59:45 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 38781 invoked by uid 500); 22 Sep 2006 16:59:44 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 38772 invoked by uid 99); 22 Sep 2006 16:59:44 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Sep 2006 09:59:44 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lists@nabble.com; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] ([72.21.53.35:36536] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id CB/80-06791-F6614154 for ; Fri, 22 Sep 2006 09:59:28 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GQoMi-0004SZ-Lu for activemq-users@geronimo.apache.org; Fri, 22 Sep 2006 09:59:04 -0700 Message-ID: <6451007.post@talk.nabble.com> Date: Fri, 22 Sep 2006 09:59:04 -0700 (PDT) From: Rob Lugt To: activemq-users@geronimo.apache.org Subject: Topic consumer appears throttled MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: robert.lugt@cheynecapital.com X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi I'm hoping to use AMQ for a stock price publishing system, so high throughput and low latency are important factors. To verify that the kind of throughput we are after is achievable I've created a very simple producer/consumer pair based on the sample code in http://www.activemq.org/site/nms.html. I've come across a potential problem where the consumer's receive rate dramatically falls after the number of enqueued messages exceeds a certain threshold. I'm pretty sure I must be falling foul of a configuration problem because the number 1000 seems to be significant. If the publisher sends 1000 messages, the consumer happilly receives them in a couple fo seconds. But, if I configure the publisher to send 1500 messages in quick succession, I see a perculiar pattern: the consumer receives the first 300 messages quickly, it then receives the next 200 messages very slowly (approx 5 msgs/s) until there are exactly 1000 messages left in the queue and then it speeds through the last 1000 in just 2 seconds. If I increase the number of messages sent, the same pattern remains i.e. the consumer runs slowly until only 1000 messages remain then speeds up! Topology: Client 1 and Client 2 both running on a single workstation, connecting via OpenWire using NMS AMQ 4.0.1 Broker running on separate machine (Windows 2003 Server, J2SE 1.5.0_06) Client 1 opens a session and publishes n (non-persistent) messages to a single topic. Client 2 opens a session and registers a listener on the same topic. I've tried various options to overcome this, none of which seem to have had any impact. On connection uri I have: jms.useAsyncSend=true&consumer.dispatchAsync=false On Topic name I have: jms.useAsyncSend=true&consumer.dispatchAsync=false Any ideas/solutions gratefully received. Best regards Rob Lugt -- View this message in context: http://www.nabble.com/Topic-consumer-appears-throttled-tf2318926.html#a6451007 Sent from the ActiveMQ - User mailing list archive at Nabble.com.