[rabbitmq-discuss] how to get consumer number

Matthias Radestock matthias at rabbitmq.com
Sun Aug 12 17:54:44 BST 2012


On 12/08/12 15:46, Bai Shuwei wrote:
> I  use the amqp_queue_declare() routine, i can get the message count but
> the consumer count is zero all the time. one consumer is reading data in
> my test environment. more ideas?

How is your consumer "reading data"? Using basic.consume or basic.get? 
The latter obviously won't show up as a queue consumer as it's a one-off 
request/response operation.

Also, consumers to which no messages can be sent at present because they 
are blocked (e.g. the client is using basic.qos prefetch and the 
prefetch count has been reached), are excluded.

Matthias.


More information about the rabbitmq-discuss mailing list