Hi, Which version of Erlang are you using? 32 bits or 64 bits?
What's the OS? I've seen this error on 32 bits Erlang on Mac. Regards, Alvaro On Tue, Oct 29, 2013 at 10:10 PM, François Beausoleil < [email protected]> wrote: > Hi all! > > I have a bare metal server with 32 GiB of RAM. I installed RabbitMQ 3.2.0, > Erlang R16B02. > > When load increases (publishing over 4000 msgs/s), RabbitMQ dies with > "Could not allocate memory" errors: > > Crash dump was written to: erl_crash.dump > eheap_alloc: Cannot allocate 529782288 bytes of memory (of type "heap"). > > The messages which are published are about 4 KiB of XML. The persistent > option is set to true, to ensure persistence across reboots. > > The host has configuration for overcommit: > > # cat /proc/sys/vm/overcommit_ratio > 50 > # cat /proc/sys/vm/overcommit_memory > 2 > > On start, RabbitMQ correctly identifies the total amount of memory: > > =INFO REPORT==== 29-Oct-2013::20:58:03 === > node : rabbit@skyler > home dir : /var/lib/rabbitmq > config file(s) : (none) > cookie hash : mV5+4OI0hTEXkDPMtOzVdQ== > log : /var/log/rabbitmq/[email protected] > sasl log : /var/log/rabbitmq/[email protected] > database dir : /var/lib/rabbitmq/mnesia/rabbit@skyler > > =INFO REPORT==== 29-Oct-2013::20:58:04 === > Limiting to approx 3996 file handles (3594 sockets) > > =INFO REPORT==== 29-Oct-2013::20:58:04 === > Memory limit set to 12826MB of 32066MB total. > > =INFO REPORT==== 29-Oct-2013::20:58:04 === > Disk free limit set to 50MB > > On the same host, I'm also running a Java application. The Java > application's max heap is set to 6 GiB, through -Xmx6g. > > Google and StackOverflow aren't very helpful: there are a few mentions, > but not many apply to RabbitMQ, and the other ones don't seem to apply or > are very old. > > What can I do to troubleshoot the problem? > > Thanks! > François > > _______________________________________________ > rabbitmq-discuss mailing list > [email protected] > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss > > -- You received this message because you are subscribed to the Google Groups "rabbitmq-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rabbitmq-discuss. For more options, visit https://groups.google.com/groups/opt_out.
