[rabbitmq-discuss] messages getting stuck in queue
alexandru at rabbitmq.com
Thu Aug 5 07:37:49 BST 2010
> Im currently using rabbitmq-1.7.2. Ive noticed that many a times... messages
> remain stuck in the queue and there is no way for me to extract them.. I
> tries running the list_queues command... and I see that the queues does have
> consumers waiting for messages.. but the message is never sent... I event
> tried restarting the rabbitmq instance and having consumers reconnect to
> it.. but of no avail..
It isn't really possible for messages to get ``stuck'' in a queue.
If there are consumers on the queue, then the messages should get
delivered to them.
A few questions:
* Are you sure the consumers are written correctly and that they're
getting messages off the queue?
* Are you in no-ack mode or are you explicitly acking the messages?
Otherwise, the messages will get deliverd but will not get taken off
Hope this helps.
More information about the rabbitmq-discuss