[rabbitmq-discuss] lots of channel getting created

Emile Joubert emile at rabbitmq.com
Mon Jan 9 09:33:24 GMT 2012


Hi Pradeep,

On 07/01/12 07:27, pradeep w wrote:

>                 channel.close();
>                 connection.close();           
> 
> However after a while [in the management console] I see a lot of
> channels [as of now more than 1000]. And most of these are not being
> used at all.

The code you posted should not leak channels, so something else must be
going wrong. Are you certain that the "channel.close();" line is being
executed? Is it possible that a different client is connecting and
failing to properly close channels?

If you are still stuck after checking this then you may want to consider
connecting to the broker via a protocol tracer which will confirm
whether your client is closing the channel or not:

http://www.rabbitmq.com/api-guide.html#tracer
http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/tools/Tracer.html


-Emile




More information about the rabbitmq-discuss mailing list