[rabbitmq-discuss] RabbitMQ crash due to out of memory
Chen, Bin
Bin.Chen at kla-tencor.com
Fri Aug 31 22:57:27 BST 2012
Hi Matthias,
I tried your code. Erl.exe crashed.
My other tests showed that the crash happened when size was more than
2040*1024*1024, a little bit smaller than 2GB.
There was result display error when size was more than 512 MB.
When size is smaller than 512 MB, the result was displayed as
<<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,...>>
We will switch to 64-bit later.
Thanks,
--Bin
-----Original Message-----
From: Matthias Radestock [mailto:matthias at rabbitmq.com]
Sent: Wednesday, August 29, 2012 10:51 AM
To: Chen, Bin
Cc: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] RabbitMQ crash due to out of memory
On 29/08/12 18:24, Chen, Bin wrote:
> My system is Windows 2008 Server 64-bit which has 24 GB RAM installed.
> Erlang is a 32-bit version.
Please switch to the 64-bit version.
> Since Erlang VM has /LARGEADDRESSAWARE flag set, which implies it can
> use up to 4 GB on a 64-bit Windows, we increased HWM to 1.6 GB.
I am not convinced that is true. Please try the following:
- in a command shell run 'erl.exe'
- at the prompt, enter
binary:copy(<<0>>, 1024*1024*1024*3).
(including the final '.') and hit return.
That should churn away for a few seconds and eventually print
<<0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,...>>
If it dies instead then Erlang cannot use 4GB.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list