[rabbitmq-discuss] Erlang crashes trying to allocate 583848200 bytes of memory

Jerry Kuch jerryk at vmware.com
Tue Jan 18 21:23:44 GMT 2011


A couple more small remarks on the somewhat less than optimal Windows
situation...

> Possible solutions:
>  - upgrade to erlang >= R13B3

Be warned that the results of doing so currently appear to be a bit on
the "meh" side.  In some cases we've seen the onset of the problem be
delayed a little bit, but happen anyway, even with version 14B01.

>  - Configure 'vm_memory_high_watermark' value (as Jerry suggested).
>    The smaller the value, the sooner Rabbit will stop accepting
>    new messages and growing memory.

This is probably the most applicable advice we have at this point. If
you do try it with a lower watermark value, say something like 0.2,
we're interested in hearing what results you experience as the
behavior Marek mentions kicks in, and whether they're sufficient to
keep the crashes at bay while not unacceptably compromising
throughput.

>  - Play with IMAGE_FILE_LARGE_ADDRESS_AWARE flag.

Also, be aware that just hacking this bit on the executable doesn't
necessarily mean that the code within the executable is going to do
the right thing, even if you're running a version of Windows that's
been booted with the appropriate settings to induce a 3GB/1GB
user/kernel split rather than the default 2GB/2GB.  Historically, some
32-bit applications under Windows have played funny games with pointer
arithmetic and made assumptions about pointer values that can result
in them misbehaving if user space doesn't end around the usual 2GB
boundary.  I have no idea if the Windows release of Erlang is one of
them.

Best regards,
Jerry


More information about the rabbitmq-discuss mailing list