2009/6/19 Denis Bazhenov <bazhe...@farpost.com>: > 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: 55189 > DispatchCount: 77525 > EnqueueCount: 55191 > InFlightCount: 22336 > QueueSize: 2 > > How can I dispatch more messages than I enqueue? Can anyone explain what > does this numbers mean?
Note that DequeueCount + InFlightCount == DispatchCount. >From my understanding: EnqueueCount = Number of messages sent to a queue and committed. DequeueCount = Number of messages removed from a queue and committed. DispatchCount = Number of messages sent from this queue to consumers. Includes messages which were not commit()ed, but rolledback. InFlightCount = 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(). -- 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