From users-return-19486-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Tue Jun 23 00:05:44 2009 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 61774 invoked from network); 23 Jun 2009 00:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 00:05:44 -0000 Received: (qmail 55559 invoked by uid 500); 23 Jun 2009 00:05:54 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 55495 invoked by uid 500); 23 Jun 2009 00:05:54 -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 55485 invoked by uid 99); 23 Jun 2009 00:05:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 00:05:54 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.222.179] (HELO mail-pz0-f179.google.com) (209.85.222.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 00:05:44 +0000 Received: by pzk9 with SMTP id 9so3424420pzk.22 for ; Mon, 22 Jun 2009 17:05:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.134.15 with SMTP id h15mr6337550rvd.156.1245715521444; Mon, 22 Jun 2009 17:05:21 -0700 (PDT) In-Reply-To: <1245390096.7027.12.camel@bazhenov-desktop> References: <1245390096.7027.12.camel@bazhenov-desktop> Date: Tue, 23 Jun 2009 10:05:21 +1000 Message-ID: <1c4bf5540906221705l6bba59ecm8910468083bc642b@mail.gmail.com> Subject: Re: InFlightCount/DispatchCount meaning From: David Sitsky To: users@activemq.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/6/19 Denis Bazhenov : > I'm interested in following topic. What does the InFlightCount mean if > JMX console for queue. > > It's seems like in flight count is difference between dequeue count and > dispatch count. But I have very strange situation. > > I have a queue which have following statistic: > > DequeueCount: =C2=A055189 > DispatchCount: 77525 > EnqueueCount: =C2=A055191 > InFlightCount: 22336 > QueueSize: =C2=A0 =C2=A0 2 > > How can I dispatch more messages than I enqueue? Can anyone explain what > does this numbers mean? Note that DequeueCount + InFlightCount =3D=3D DispatchCount. >From my understanding: EnqueueCount =3D Number of messages sent to a queue and committed. DequeueCount =3D Number of messages removed from a queue and committed. DispatchCount =3D Number of messages sent from this queue to consumers. Includes messages which were not commit()ed, but rolledback. InFlightCount =3D Number of messages sent from this queue to consumers that haven't been committed. Given you large difference in DispatchCount compared to DequeueCount, perhaps a lot of your consumers are failing when they receive a message, and don't call commit(). --=20 Cheers, David Nuix Pty Ltd Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699 Web: http://www.nuix.com Fax: +61 2 9212 6902