Thank you Mathias,<br>Yesterday I noticed that when the consumer stops receiving messages, the rabbitmqctl list_connections shows that the connection no longer exists. However in the Java Client, the Connection object and it&#39;s associated Channel objects don&#39;t seem to notice about that. I tried logging it&#39;s status by printing if either the Connection or the Channel is null, or if any of those isOpen(), but they says they are both open. The client doesn&#39;t seem to notice that the connection is down.<br>
<br>How can I ask the client about the connection in order to realize that it&#39;s eventually down and it needs to be reconnected?<br><br>thanks in advance for your help,<br><br>guillem<br><br><br><br><br><div class="gmail_quote">
On Sat, Feb 6, 2010 at 10:38 PM, Matthias Radestock <span dir="ltr">&lt;<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Guillem,<div class="im"><br>
<br>
Guillem Corominas wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
when I start consuming from a second producer, it works well during a<br>
small period of time (about 2h) and then suddenly stops consuming the<br>
data from the producers (stops both at the same time) and queues<br>
start to fill.<br>
<br>
I supose it&#39;s a problem with the connection &amp; or channel but there is<br>
�nothing on the logs (neither in the java client nor in the<br>
rabbitmq).<br>
</blockquote>
<br></div>
I suggest you do a &#39;rabbitmqctl list_connections peer_address peer_port<br>
state channels send_pend&#39; on all the brokers to check that you have the<br>
connections and number of channels you expect to see and that there<br>
is no send backlog (that&#39;s what the send_pend count<br>
shows).<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If I then try to perform a basicCancel to any of my consumer<br>
instances, the call becomes blocked and never returns a response<br>
neither an error.<br>
</blockquote>
<br></div>
Getting a stack trace of all the Java threads at that point might<br>
provide some clues as to why things are stuck.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have one open connection and one open channel per producer, however<br>
I have 3 consumers that consume different kinds of message (topic dependent) that share the Channel. Can this be the problem?<br>
</blockquote>
<br></div>
That&#39;s perfectly ok.<br>
<br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br>