<div dir="ltr"><div>Hi,</div><div><br></div>Which version of Erlang are you using? 32 bits or 64 bits?<div><br></div><div>What&#39;s the OS?</div><div><br></div><div>I&#39;ve seen this error on 32 bits Erlang on Mac.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Alvaro</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 10:10 PM, Fran�ois Beausoleil <span dir="ltr">&lt;<a href="mailto:francois.beausoleil@gmail.com" target="_blank">francois.beausoleil@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all!<div><br></div><div>I have a bare metal server with 32 GiB of RAM. I installed RabbitMQ 3.2.0, Erlang R16B02.</div>
<div><br></div><div>When load increases (publishing over 4000 msgs/s), RabbitMQ dies with &quot;Could not allocate memory&quot; errors:</div><div><br></div><div><div>Crash dump was written to: erl_crash.dump</div><div>eheap_alloc: Cannot allocate 529782288 bytes of memory (of type &quot;heap&quot;).</div>
</div><div><br></div><div>The messages which are published are about 4 KiB of XML. The persistent option is set to true, to ensure persistence across reboots.</div><div><br></div><div>The host has configuration for overcommit:</div>
<div><br></div><div><div># cat /proc/sys/vm/overcommit_ratio</div><div>50</div><div># cat /proc/sys/vm/overcommit_memory</div><div>2</div></div><div><br></div><div>On start, RabbitMQ correctly identifies the total amount of memory:<br>
</div><div><br></div><div><div>=INFO REPORT==== 29-Oct-2013::20:58:03 ===</div><div>node � � � � � : rabbit@skyler</div><div>home dir � � � : /var/lib/rabbitmq</div><div>config file(s) : (none)</div><div>cookie hash � �: mV5+4OI0hTEXkDPMtOzVdQ==</div>
<div>log � � � � � �: /var/log/rabbitmq/rabbit@skyler.log</div><div>sasl log � � � : /var/log/rabbitmq/rabbit@skyler-sasl.log</div><div>database dir � : /var/lib/rabbitmq/mnesia/rabbit@skyler</div><div><br></div><div>=INFO REPORT==== 29-Oct-2013::20:58:04 ===</div>
<div>Limiting to approx 3996 file handles (3594 sockets)</div><div><br></div><div>=INFO REPORT==== 29-Oct-2013::20:58:04 ===</div><div>Memory limit set to 12826MB of 32066MB total.</div><div><br></div><div>=INFO REPORT==== 29-Oct-2013::20:58:04 ===</div>
<div>Disk free limit set to 50MB</div></div><div><br></div><div>On the same host, I&#39;m also running a Java application. The Java application&#39;s max heap is set to 6 GiB, through -Xmx6g.</div><div><br></div><div>Google and StackOverflow aren&#39;t very helpful: there are a few mentions, but not many apply to RabbitMQ, and the other ones don&#39;t seem to apply or are very old.</div>
<div><div><br>What can I do to troubleshoot the problem?</div></div><div><br></div><div>Thanks!<span class="HOEnZb"><font color="#888888"><br>Fran�ois</font></span></div></div><br>_______________________________________________<br>

rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>