[rabbitmq-discuss] Producer consumer performance test

Matthias Radestock matthias at rabbitmq.com
Thu Apr 21 20:07:27 BST 2011


Shalin,

Shalin Shekhar Mangar wrote:
> The rate of consumption keeps dropping. CPU usage of rabbitmq is 
> constant at approx 170%. [...] Am I doing something wrong?

Yes, you are :)

In https://gist.github.com/935196#L85 you are creating a new AMQP 
consumer every time you want to receive a message from the queue. Simply 
move that line out of the loop.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list