<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thiago,<div><br></div><div>Regarding your consumers, when using the .NET client, you should make sure to set the RequestedHeartbeat property on your ConnectionFactory to a non-zero value. If you don't do this, then should a process die without a chance to clean up the connection, it may never get disconnected and you will have to close the connections manually either through the management web interface or rabbitmqctl. Rabbit seems to hold on to the connections if you don't do this.</div><div><br></div><div>Here is a helpful script if you have a lot of connections and find it tedious to close them using the web UI.</div><div><br></div><div><pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">#!/bin/bash
peerToDisconnect=1.2.3.4
for c in `rabbitmqctl list_connections peer_address pid | grep $peerToDisconnect`;
do
if [ $c != $peerToDisconnect ];
then rabbitmqctl close_connection $c "Orphaned - disconnecting";
fi;
done
</pre></div><div>-Dave</div><div><br><div><div>On Aug 3, 2012, at 1:10 PM, Thiago Burgo Belo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div>Matthias, </div><div><br></div><div>Has 2 consumers, but this is more strange, because I closed all connections with Rabbit (.NEt Client) and the consumers are Idle since 2012-08-02 15:05:56, the consumers will never die?</div>
<div>Note 1: I already turned off my computer (client) and the consumer keep alive.</div><div>Note 1: I'm using a non default virtual host, something like /myVirtualHost</div><div><br></div><div>See the attachment.</div>
<div><br></div><div>Thanks, </div><div><br></div><div>Thiago Burgo</div><div><br></div><div class="gmail_quote">2012/8/2 Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 02/08/12 20:58, Thiago Burgo Belo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My queue with x-expires not expires after timeout, the follow queue was<br>
created and not accessed since (2012-08-02 14:00), and not expired until<br>
now.<br>
<br>
Parameters<br>
x-ha-policy: all<br>
x-expires: 9000<br>
arguments: <br>
x-match: any<br>
<br>
durable: true<br>
<br>
Exclusive owner None Status Idle since<br>
2012-08-02 16:16:58<br>
</blockquote>
<br></div></div>
Does the queue have a consumer? From <a href="http://www.rabbitmq.com/extensions.html#queue-leases" target="_blank">http://www.rabbitmq.com/<u></u>extensions.html#queue-leases</a><br>
<quote><br>
"Unused means the queue has no consumers, the queue has not been redeclared, and basic.get has not been invoked for a duration of at least the expiration period."<br>
</quote><span class="HOEnZb"><font color="#888888"><br>
<br>
Matthias.<br>
</font></span></blockquote></div><br></div>
<span><rabbit.png></span>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<br></blockquote></div><br></div></body></html>