[rabbitmq-discuss] max channels
coolchen033 at gmail.com
Tue Nov 23 07:16:14 GMT 2010
Thanks Marek, now my every consumer use 10 threads and each thread use one
channel ,i have 15 consumers ,so on the rabbitmq server it has 150 channels
it's seems work ok.
2010/11/22 Marek Majkowski <majek04 at gmail.com>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss