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 8C9D9101ED for ; Fri, 3 May 2013 16:53:13 +0000 (UTC) Received: (qmail 10174 invoked by uid 500); 3 May 2013 16:53:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 10145 invoked by uid 500); 3 May 2013 16:53:12 -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 10137 invoked by uid 99); 3 May 2013 16:53:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 16:53:12 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of ypan@yahoo-inc.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 16:53:07 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UYJDy-0007jy-5M for users@activemq.apache.org; Fri, 03 May 2013 09:52:46 -0700 Date: Fri, 3 May 2013 09:52:46 -0700 (PDT) From: Yi Pan To: users@activemq.apache.org Message-ID: <1367599966159-4666634.post@n4.nabble.com> Subject: Question regarding to EnqueueCount and ExpiredCount for topic destination MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, all, We have observed the following behavior in the ActiveMQ destination MBean stats: While there is no incoming messages to a topic destination, the EnqueueCount keeps decreasing instead of stay the same. Further investigation showed that ExpiredCount is increasing at exactly the same rate as EnqueueCount decreases: First run to get stats on the particular destination: "ExpiredCount": 1503606 "EnqueueCount": 170303 Second run: "ExpiredCount": 1504372 "EnqueueCount": 169537 Note that ExpiredCount increased by 766 between the two samples and EnqueueCount decreased by exactly the same amount. According to the explanation provided by ActiveMQ official web (http://activemq.apache.org/how-do-i-find-the-size-of-a-queue.html), EnqueueCount and ExpiredCount are: Enqueue Count - the total number of messages sent to the queue since the last restart Expired Count - the number of messages that were not delivered because they were expired We don't see any reason why those two stats are linked in such a way. Can someone help to provide some explanation? Thanks!~ -Yi -- View this message in context: http://activemq.2283324.n4.nabble.com/Question-regarding-to-EnqueueCount-and-ExpiredCount-for-topic-destination-tp4666634.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.