Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 83765 invoked from network); 27 Dec 2010 12:36:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Dec 2010 12:36:15 -0000 Received: (qmail 43796 invoked by uid 500); 27 Dec 2010 12:36:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 43559 invoked by uid 500); 27 Dec 2010 12:36:12 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 43547 invoked by uid 99); 27 Dec 2010 12:36:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 12:36:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Dec 2010 12:36:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBRCZkbF004361 for ; Mon, 27 Dec 2010 12:35:47 GMT Message-ID: <3797848.28341293453346838.JavaMail.jira@thor> Date: Mon, 27 Dec 2010 07:35:46 -0500 (EST) From: "Dejan Bosanac (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2683) Producer Flow Control Does Not Seem to Work with Topics MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dejan Bosanac resolved AMQ-2683. -------------------------------- Resolution: Fixed Assignee: Dejan Bosanac Fixed with svn revision 1053055. The test based on the one Maarten provided is included as well. Thanks! > Producer Flow Control Does Not Seem to Work with Topics > ------------------------------------------------------- > > Key: AMQ-2683 > URL: https://issues.apache.org/jira/browse/AMQ-2683 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.0, 5.3.1 > Environment: Windows 2008 Server, Sun Java 6. > Reporter: Brad Willard > Assignee: Dejan Bosanac > Priority: Minor > Fix For: 5.5.0 > > > I have multiple producers posting messages to queues and adding statistical information to a topic. I have one consumer of that topic subscribing and taking those messages and monitors for problems. The consumer is slower than publishing to the topic. I have flow control enabled and I expected that once the memory limit of the Consumers dispatch queue was reached it would throttle the publishers to the topic, but instead it seems to lock everything up. > The message producers are putting messages to each queue and the topic on separate sessions. The broker basically stops once it posts the message that it's going to throttle producers. The topic messages are messages with text attributes, they are non persistent and posted non-transactional using the AUTO_ACKNOWLEDGE mode. > All the producers and consumers use the same Connection factory with with these attributes set. > ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(brokerURI); > factory.setProducerWindowSize(1024 * 1024); > factory.getPrefetchPolicy().setTopicPrefetch(10); > My activemq config is as follows: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.