[rabbitmq-discuss] max channels

Marek Majkowski majek04 at gmail.com
Mon Nov 22 10:16:08 GMT 2010


On Mon, Nov 22, 2010 at 07:38, 陈伟平 <coolchen033 at gmail.com> wrote:
> so rabbitmq server has so many channels,how many channels rabbitmq server
> can support ? or i should modify code for Multithread use same channel ?

RabbitMQ doesn't impose any limit on channels. Theoretically you may
create as many channels as you have free erlang-process-ids. Which
is usually about 32k.

But in practice RabbitMQ shouldn't be using too many channels.
If you're using more than a dozen of channels for a consumer, you're
probably doing something wrong.

You may run multiple 'basic.consumes' on one channel. But when you
share a channel between threads remember to make sure the access
is synchronized.

Cheers,
  Marek


More information about the rabbitmq-discuss mailing list