I found an old post with same problem (non deterministic behaviour of collecting expired messages) https://issues.apache.org/jira/browse/AMQ-1112
I am using build 5.8. Can someone please let me know if there is any deterministic way of expiring messages ? My scenario: I have 2 consumers and I put an infinite sleep in one of the consumer. In that case the messages are never expired. Ideally fast consumer should consumer messages and slow consumer should expire those messages. -- View this message in context: http://activemq.2283324.n4.nabble.com/Random-slow-Subscribers-causing-Topic-to-full-Solution-tp4664784p4664919.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.