Why my expired messages are not getting deleted and Inflight counts keep high

Solution Verified - Updated -

Issue

  • My messages are set with Time-To-Live (TTL). They are expired before they got consumed by the consumers. I use processExpired tag to instruct the broker to not process the expired messages in DLQ. So they should be deleted automatically. As per our business, we are using CLIENT_ACKNOWLEDGE and INDIVIDUAL_ACKNOWLEDGE mode.
  • In our production, we noticed the inFlightCount is high. Our expired messages are not getting deleted hence occupied a large number of storage space. Why the messages are not getting deleted even if they are already expired?

Environment

  • Red Hat AMQ
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In