Thank you Matthias. We deployed that config to production but haven't seen any real change... How can we tell if RabbitMQ is indeed using these settings?<div><br></div><div>Thanks!</div><div><br></div><div>--</div><div>
Raphael.</div><div><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 12:18 PM, Matthias Radestock <span dir="ltr"><<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Raphael,<div><br>
<br>
On 23/09/11 19:11, Raphael Simon wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
We are using RabbitMQ 2.4 in our production environment and are running<br>
into issues with memory usage. We are seeing a direct relation between<br>
the number of connections and the memory usage (the graphs are<br>
identical). The ratio is 200 KB / connection which seems hefty<br>
especially with about 50,000 connections open on each broker this ends<br>
up consuming all the ram.<br></div>
[...]<div><br>
I'm wondering if there is a setting somewhere that can be tweaked<br>
</div></blockquote>
<br>
Reduce the socket send and receive buffer sizes by sticking the following in your rabbitmq.config:<br>
<br>
[{rabbit, [{tcp_listen_options, [binary,<br>
{packet, raw},<br>
{reuseaddr, true},<br>
{backlog, 128},<br>
{nodelay, true},<br>
{sndbuf, 1024},<br>
{recbuf, 1024},<br>
{exit_on_close, false}]}]}].<br>
<br>
(All but the sndbuf and recbuf settings are identical to the defaults)<br>
<br>
<br>
Regards,<br><font color="#888888">
<br>
Matthias.<br>
</font></blockquote></div><br>
</div>