Are you sure the connection on the broker is being closed after you kill your consumers? I have a similar problem and sometimes have to manually close the connection on the broker in order to get messages delivered to the consumer. <br>
<br>See this thread for details <a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2010-September/008779.html">http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2010-September/008779.html</a><br><br><br><div class="gmail_quote">
On Fri, Oct 1, 2010 at 11:43 PM, David King <span dir="ltr">&lt;<a href="mailto:dking@ketralnis.com">dking@ketralnis.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have a moderate-traffic queue on rabbit 1.8.1 that for some reason doesn&#39;t ever get smaller than 1.3k (as reported by rabbitmqctl list_queues). �<a href="http://i.imgur.com/m6Zva.png" target="_blank">http://i.imgur.com/m6Zva.png</a><br>

<br>
&gt; ri@queue01:~$ rabbitmqctl list_queues name messages_ready messages_unacknowledged messages memory | grep indextank_changes<br>
&gt; indextank_changes � � � 10 � � �1342 � �1352 � �91015008<br>
<br>
The queue has two consumers that have been killed/restarted (several times), so it&#39;s not a matter of them being stuck in a consumer. It&#39;s not an issue of not being able to process them fast enough, because if I shut off the consumers to let the queue grow a bit then turn them back on, messages are processed down to that point near-instantly (that&#39;s the giant spike in the aforelinked graph).<br>

<br>
Any idea why these messages can&#39;t be retrieved?<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br>