[rabbitmq-discuss] lots of channel getting created

pradeep w hpk.warrier at gmail.com
Mon Jan 9 18:18:26 GMT 2012

Thanks . At the code level I'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].
I'll try the tracer and try to get more information.

On Mon, Jan 9, 2012 at 3:03 PM, Emile Joubert <emile at rabbitmq.com> wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120109/56a2ba83/attachment.htm>

More information about the rabbitmq-discuss mailing list