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 0757510B50 for ; Fri, 2 Aug 2013 21:37:40 +0000 (UTC) Received: (qmail 53079 invoked by uid 500); 2 Aug 2013 21:37:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53054 invoked by uid 500); 2 Aug 2013 21:37:39 -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 53046 invoked by uid 99); 2 Aug 2013 21:37:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 21:37:39 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.posta@gmail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Aug 2013 21:37:33 +0000 Received: by mail-la0-f50.google.com with SMTP id fn20so785971lab.37 for ; Fri, 02 Aug 2013 14:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QFzXzO3cmLd9h1nh9flN4unNk33JNLNia583dkRDccQ=; b=ur2fH4gXF8a2jiBO2Hl2aVp2RHX+DhgU/DEqCEfftPgtpWi6iZZpi8hd65K1Vvl5Kg itI56t95daNWp8wNqyll0I3oZNROXWxk0o7AucrrCsSGhCPouQt6IbY+VERXIRGWL+BQ IR9XLkPxuAyyNhVNmbvirfuKA6KVN8ffsi/6aRbmMscX4iANYORQQzvL8GlBq7PWNa4e aNTCyuacC67LQNmq76arAfLVkSnbEdN/T2J2ABjMbZG/WIf7lfrldv2cifkX5vUhtGof 1rxYTzMEko1AztyXkYpz9gDVy6xBIAsYvbuHwuTRAOQRjdeZUfTdXSAInmGaYDyx227I j3Yw== MIME-Version: 1.0 X-Received: by 10.112.55.173 with SMTP id t13mr4366318lbp.39.1375479432982; Fri, 02 Aug 2013 14:37:12 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Fri, 2 Aug 2013 14:37:12 -0700 (PDT) In-Reply-To: <1375403257331-4670034.post@n4.nabble.com> References: <1375403257331-4670034.post@n4.nabble.com> Date: Fri, 2 Aug 2013 14:37:12 -0700 Message-ID: Subject: Re: Help with a producer & consumer stall problem after reaching flow control From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a1133e330ffb66604e2fdc2b2 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133e330ffb66604e2fdc2b2 Content-Type: text/plain; charset=ISO-8859-1 You'll have to check to see what the broker thinks is going on. So if the broker dispatches messages up to the consumer prefetch limit, and the consumer hasn't sent ack's back, the broker will not try to send any more messages and your consumers will look hung. On Thu, Aug 1, 2013 at 5:27 PM, Jmal wrote: > Hello, I'm hoping that someone would be able to help me understand why I am > having an issue with my applications usage of ActiveMQ under flow control > situations. I'm using 2 ActiveMQ 5.4.3 brokers using Open JDK 1.6, > configured with 5 queues each. I have 2 applications in separate JVMs > connecting to each broker independently (app1 connects to broker1 & > broker2) > and (app2 connects to broker2). app1 pushes messages to 1 or more queues > on > broker2 using the broker2's nio URI. app2 reads and processes those > messages on broker2. All works well, until broker's 1 & 2 memory usage > reaches 100% (as observed by the admin UI). Then app1's connection to > broker2 is placed in flow control as expected. The weird part is that app2 > is no longer able to read any messages from broker2 which is very > unexpected. If I understand correctly, producer flow control is only > suppose to slow down the producers from app1's connection to broker2, and > not app2's connection to broker2? If this is true, is there a known bug > with the version of ActiveMQ I'm using or have I mis-configured the broker? > Below is the config used for both brokers, and each is running on 2 > separate > EC2 instances with 7GB of memory. Any help will be greatly appreciated. > > Thanks > xmlns="http://www.springframework.org/schema/beans" > xmlns:amq="http://activemq.apache.org/schema/core" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> > > xmlns="http://activemq.apache.org/schema/core" > brokerName="localhost" > dataDirectory="/usr/data/activemq" > destroyApplicationContextOnStop="true" > persistent="true"> > > > > > > > > > > > > > > > > > > /> > > > > directory="/usr/data/activemq/kahadb" > enableJournalDiskSyncs="false" > indexWriteBatchSize="10000" > indexCacheSize="1000" > /> > > > > > > > > > > > > > > > > > > trustStore="truststore" trustStorePassword="efgh5678"/> > > > > > > > > > > > > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Help-with-a-producer-consumer-stall-problem-after-reaching-flow-control-tp4670034.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --001a1133e330ffb66604e2fdc2b2--