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 99BD296F8 for ; Wed, 16 May 2012 02:23:24 +0000 (UTC) Received: (qmail 1003 invoked by uid 500); 16 May 2012 02:23:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 950 invoked by uid 500); 16 May 2012 02:23:24 -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 941 invoked by uid 99); 16 May 2012 02:23:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 02:23:24 +0000 X-ASF-Spam-Status: No, hits=3.0 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 02:23:17 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SUTtA-0001wu-Gs for users@activemq.apache.org; Tue, 15 May 2012 19:22:56 -0700 Date: Tue, 15 May 2012 19:22:56 -0700 (PDT) From: Samslara To: users@activemq.apache.org Message-ID: <1337134976493-4639822.post@n4.nabble.com> Subject: duplex and producer flow control MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm having an issue when sending a number of messages that starts producer flow control between two brokers and when the networkConnector between the two is setup as duplex. The setup I have is I have two brokers, A and B. I also have two consumers on B subscribed to two topics, topic1 and topic2. I then have two producers on A which are publishing on topic1 and topic2. So when I startup the consumer on B on topic1 and have it consume messages slowly, and then I produce a large number of messages to topic1 on A so that producer flow control is triggered and the producer on A is held back from sending more because of this. I then start the consumer on topic2 on B and have it consume quickly. When I produce to topic2 on A the messages do not flow like they should. Rather they hold on the networkConnector until 5 messages make it to topic1 and then 5 messages all get sent right away to topic2. It seems like this burst of messages always matches the prefetchSize of the networkConnector. Also when I stop the consumer on topic1 all the messages being held back for topic1 gets send right away and topic1 receives messages like normal. This problematic behavior goes away when duplex="false". Can anyone provide me with any insight into why this is happening and how to get around it? P:topic1 -\ /-> C:topic1 (slow) P:topic2 --> A --> B --> C:topic2 (fast) networkConnector definition: -- View this message in context: http://activemq.2283324.n4.nabble.com/duplex-and-producer-flow-control-tp4639822.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.