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 010D010EB8 for ; Wed, 17 Apr 2013 15:51:15 +0000 (UTC) Received: (qmail 53698 invoked by uid 500); 17 Apr 2013 15:51:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53656 invoked by uid 500); 17 Apr 2013 15:51:14 -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 53648 invoked by uid 99); 17 Apr 2013 15:51:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 15:51:14 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FS_LARGE_PERCENT2,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of suonayi@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 15:51:09 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1USUcu-0007fN-Ni for users@activemq.apache.org; Wed, 17 Apr 2013 08:50:28 -0700 Date: Wed, 17 Apr 2013 08:50:28 -0700 (PDT) From: SuoNayi_Gmail To: users@activemq.apache.org Message-ID: <1366213828727-4665996.post@n4.nabble.com> In-Reply-To: <1365602384133-4665807.post@n4.nabble.com> References: <167f3ed7.fa59.13de4e2095e.Coremail.suonayi2006@163.com> <1365579246848-4665800.post@n4.nabble.com> <1365602384133-4665807.post@n4.nabble.com> Subject: Re: What can be reason of 460%+ memory usage limit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Now I get fully understand why the remote slow consumer can block the producer. What I missed is that messages sent from the producer will pass throght the virtual topic as well even if the topic is virtual but it does exist in the physical form in the broker, b/w PFC is enabled for topics and the memory is exhausted b/w unreasonable memory usage limit configuration for queues, the producer gets blocked in the topic eventually.So I can see the phenomenon once the slow consumer enqueues 200 messages the producer can resume to send 200 messages. There is some room to optimize the send logic in the topic,such as we can first check if there are consumers on the topic, if not we can just return and do nothing anymore, so that the producer wont get blocked. -- View this message in context: http://activemq.2283324.n4.nabble.com/What-can-be-reason-of-460-memory-usage-limit-tp4665651p4665996.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.