Why my expired messages are not getting deleted and Inflight counts keep high
Issue
- My messages are set with Time-To-Live (TTL). They are expired before they got consumed by the consumers. I use
processExpiredtag to instruct the broker to not process the expired messages in DLQ. So they should be deleted automatically. As per our business, we are usingCLIENT_ACKNOWLEDGEandINDIVIDUAL_ACKNOWLEDGEmode. - In our production, we noticed the
inFlightCountis 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, tools, and much more.