Thanks . At the code level I&#39;m very certain about closing. I have common point for Rabbit MQ related operation : one for publishing and one for consuming . And at both these I confirmed channel and connection getting closed after the processing [including any exception cases].<br>
I&#39;ll try the tracer and try to get more information.<br><br><div class="gmail_quote">On Mon, Jan 9, 2012 at 3:03 PM, Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pradeep,<br>
<div class="im"><br>
On 07/01/12 07:27, pradeep w wrote:<br>
<br>
&gt; � � � � � � � � channel.close();<br>
&gt; � � � � � � � � connection.close();<br>
&gt;<br>
&gt; However after a while [in the management console] I see a lot of<br>
&gt; channels [as of now more than 1000]. And most of these are not being<br>
&gt; used at all.<br>
<br>
</div>The code you posted should not leak channels, so something else must be<br>
going wrong. Are you certain that the &quot;channel.close();&quot; line is being<br>
executed? Is it possible that a different client is connecting and<br>
failing to properly close channels?<br>
<br>
If you are still stuck after checking this then you may want to consider<br>
connecting to the broker via a protocol tracer which will confirm<br>
whether your client is closing the channel or not:<br>
<br>
<a href="http://www.rabbitmq.com/api-guide.html#tracer" target="_blank">http://www.rabbitmq.com/api-guide.html#tracer</a><br>
<a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/tools/Tracer.html" target="_blank">http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/tools/Tracer.html</a><br>

<font color="#888888"><br>
<br>
-Emile<br>
<br>
<br>
</font></blockquote></div><br>