Hello,<div><br></div><div>I've a stock installation of rabbitmq using apt-get on Ubuntu 11.04 and I'm trying to run a simple producer/consumer performance test. You can see the Scala code at <a href="https://gist.github.com/935196">https://gist.github.com/935196</a></div>
<div><br></div><div>I have one producer thread which sleeps for a second after publishing 2K messages and 4 consumer threads which are all waiting for messages to arrive. Running the program on the same host as rabbitmq, I see the following numbers:</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 20000 throughput: 1966.955153422502</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 17410 throughput: 1712.234461054288</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 40000 throughput: 1982.6517967781908</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 31624 throughput: 1567.4845105328377</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 60000 throughput: 1988.3351007423119</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 45201 throughput: 1497.9122481442207</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 78000 throughput: 1941.4575866188768</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 45221 throughput: 1125.5724810832337</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 98000 throughput: 1953.125</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 60884 throughput: 1213.4088010204082</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 118000 throughput: 1960.882064576167</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 62019 throughput: 1030.6097013809263</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>Produced: 138000 throughput: 1966.4562463485186</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Consumed: 62023 throughput: 883.8080852701027</div>
</div><div><br></div><div>The rate of consumption keeps dropping. CPU usage of rabbitmq is constant at approx 170%.</div><div><br></div><div>If I remove throttling from the producers, the rate of consumption becomes abysmally low. Is the default rabbitmq configuration very slow? Am I doing something wrong?</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>-- <br>Regards,<br>Shalin Shekhar Mangar.<br>
</div>