Thanks Matt. Have few questions though
1. I see one of the queues dispatched is considerably higher than dequeueCount. Could you explain little more about the issue and what might be the underlying causes after running without issues all these years? 2. My understanding, dequeued messages are already consumed by the consumers, dispatched are messages that are dequeued and inflight. How can we see if the messages are already prefetched and how does it cause to increase queue size?? 3. Does the bug exist in 5.15.5? Is it fixed only in 5.18.1? We are using activemq-5.17.2 in another application, should we switch that also too 5.18.1?? Thanks, Suba Suresh ________________________________ From: Matt Pavlovich <mattr...@gmail.com> Sent: Monday, April 24, 2023 11:45 AM To: users@activemq.apache.org <users@activemq.apache.org> Subject: [External] Re: ActiveMQ-5.15.5 : InFlight showing negative number for Queue Hi Subashree- This is a minor issue that has been fixed since 5.15.5 (recommend upgrading to 5.18.1) that is usually caused by consumers closing or rejecting messages. Check the ‘dispatchedCount’ and see if it is noticeably higher than the dequeueCount. If so, your consumers are probably closing or rejecting messages that have been prefetched. Thanks, Matt > On Apr 24, 2023, at 10:37 AM, Suresh, Subashree RTX > <subashree.sur...@rtx.com.INVALID> wrote: > > We have multiple internal queues which the consumers subscribe to for message > retrieval in our application. Recently we see messages increasing in one of > the queue and the consumer is unable to retrieve message from the queue > though it exists and the application stops after few tries. The consumer > uses selector to retrieve message and gets message not available response. We > can see the message being in the queue using the webconsole. In the ActiveMQ > logs we see the Inflight showing a negative value when this happens. The > application has been working well for many years. There is no special > configurations set for activemq. It is all default values. Has anyone seen > this issue before?? > > Thanks,