Hi Matthew,<div><br></div><div>Humm, interesting and disturbing, I will try to do your clue sending a queue.declare to get the queue size, but know I'm really concerned. </div><div><br></div><div>If I have one persistent queue binding this Exchange where messages was posted and all of this messages are in buffer going to queue and server crash so I will lose all this buffered messages right ?</div>
<div><br></div><div>I'm using RabbitMQ 1.7.2 and I'm publishing transient messages.</div><div><br></div><div>Regards.</div><div><br><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 7:49 AM, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Mar 12, 2010 at 12:10:38AM -0300, Gustavo Aquino wrote:<br>
> So my question is why queue continue to grow ?<br>
<br>
</div>Messages can be buffered in many places. In your case, you're seeing<br>
messages buffered in the channel, before they reach the queue. This is<br>
why the numbers reported by things like rabbitmqctl list_queues should<br>
not really be trusted - there can be many messages which you believe are<br>
published but have not yet reached the queue - eg client TCP stack,<br>
kernel buffers, network buffers, and the channel in the server. Try<br>
sending a sync operation down, eg a queue.declare to (re)declare the<br>
queue. That has to go through the channel behind all the backed up<br>
publishes. When you get the queue.declare_ok back, it will contain a<br>
different number - the number of messages in the queue at the point at<br>
which the queue.declare was processed.<br>
<br>
You also didn't mention which branch/version of rabbit you're using, nor<br>
if you're publishing persistent messages (persistent messages to a<br>
transient queue still *have* to be written to disk because they should<br>
survive a crash, though not a clean shutdown).<br>
<div><div></div><div class="h5"><br>
Matthew<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>