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 5AF0E9AFB for ; Mon, 24 Dec 2012 01:58:02 +0000 (UTC) Received: (qmail 98479 invoked by uid 500); 24 Dec 2012 01:58:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 98453 invoked by uid 500); 24 Dec 2012 01:58:01 -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 98442 invoked by uid 99); 24 Dec 2012 01:58:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2012 01:58:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suonayi2006@163.com designates 220.181.13.26 as permitted sender) Received: from [220.181.13.26] (HELO m13-26.163.com) (220.181.13.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Dec 2012 01:57:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=AbSjBHset3Bn 1uVMRDbpVIK3p4Et8LSb+qvu21K4awk=; b=g7AkKOYWkhuugBse1u66SvcpR9Ck n1kOTcGW2IgCk2oRtad6HV4qEILd0rVVW33l4adTTbZygFXTQSPzRYuz+ua2Q7x0 ejywsRXdoHSOivHanhZcMvlXeSAeYqTWuvrKW0L/BducIyo440X2ELDPFg3R0JCO OEkVRZHYYYq8mHU= Received: from suonayi2006$163.com ( [203.119.80.8] ) by ajax-webmail-wmsvr26 (Coremail) ; Mon, 24 Dec 2012 09:57:32 +0800 (CST) X-Originating-IP: [203.119.80.8] Date: Mon, 24 Dec 2012 09:57:32 +0800 (CST) From: SuoNayi To: users@activemq.apache.org Subject: Reply:Re: What will happen if consumer uses the client acknowledge model but no further explicit acknowledges are made? X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20121210(21001.5125.5051) Copyright (c) 2002-2012 www.mailtech.cn 163com In-Reply-To: References: <2888139e.6758.13bc835828c.Coremail.suonayi2006@163.com> X-CM-CTRLDATA: qx85hGZvb3Rlcl9odG09Mzc3MDo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_143180_658649754.1356314252366" MIME-Version: 1.0 Message-ID: <66ae820d.97d9.13bcaa1144f.Coremail.suonayi2006@163.com> X-CM-TRANSID: GsGowGCZP0GMttdQmtYVAA--.40684W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/1tbiEAqPGk9o4BOvyAABs9 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_143180_658649754.1356314252366 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Thanks chris, in fact I know what these metrics mean. Here I just want to make sure the consequence of my use case where my consumer only receives messages but not ack them at all(via the client acknowledge model).Because the broker need track the messages that are dispatched to the consumer and not acked by the consumer all the time so the dispatched queue size keeps increasing. When lots of messages(supposing there are many pending messages for dispatch) are dispatched to the consumer the memory consumption in the broker will exceed the memory limit of the queue at last, the dispatch job will pause for waiting for available memory space. Hope someone can correct my judgement. Thanks, SuoNayi At 2012-12-23 23:46:16,chris.odom@mediadriver.com wrote: > >SuoNayi > Queue's only keep one copy of any message at any given time, that I >am aware of. What you are seeing the web console are metrics that the >Broker maintains about the Queue. Messages arrive to a Queue the Enqueue >count increments. A Consumer reads a message from the Queue the Dispatch >count increments. The Consumer acknowledges receipt of the message the >Dequeue count increments. These are just numbers that correspond to the >actions that the Broker has taken for a message. Hopefully these help >explain what it is you are seeing. > >On 2012-12-23 08:40, SuoNayi wrote: >> Hi all, >> I just want to make sure what will happen if my consumer uses the >> client acknowledge model >> but no further explicit acknowledges are made?According to my >> observation,when producers are keeping >> sending messages to the queue,the dispatched queue size for my >> consumer (on the web console) >> keeps increasing. >> I assume that with the increase of the dispatched queue size, more >> and more messages will be >> loaded into the dispatched queue for the subscription in the broker >> and more memory is taken from the SystemUsage. >> When the memory limit is exceed,the dispatch messages to the consumer >> will pause for available memory space. >> If the memory usage is not handled properly, OOM will be thrown. >> >> >> Please correct me if I'm wrong. >> >> >> Thanks, >> SuoNayi > ------=_Part_143180_658649754.1356314252366--