We experience this problem as well. It's a very serious issue, and I hope it gets some attention. We don't have test code that can reproduce it, as it seems intermittent. We can reproduce it when we get lucky by jamming a lot of messages into queues with slow consumers. We've seen it with single or multiple consumers. Typically we're using camel to consume the messages.
When we've seen this occur, using jconsole shows that the inflight count remains low, indicating the stuck messages are not being dispatched. The messages are in the database, so like others, bouncing the broker restores the problem. We did manage to capture a heap dump during the failure. We tried to inspect this, but didn't get much out of it. We're currently on activemq 5.1. We started to try the 5.3 snapshot to see if we could reproduce it with 5.3, but because of the oracle master/slave breakage I just reported in the dev mailing list, that version doesn't work for us at the moment. -- View this message in context: http://www.nabble.com/Messages-Stuck-in-the-queue%28with-the-broker%29-tp24589627p24648627.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.