[rabbitmq-discuss] Producer consumer performance test
matthias at rabbitmq.com
Thu Apr 21 20:07:27 BST 2011
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.
More information about the rabbitmq-discuss