ejabberd - Comments for "Ejabberd 2.0.1 crashes when process memory reach close to 2GB in Linux" https://www.ejabberd.im/node/3851 en Re: Erlang 2GB memory limit on 32bit processor https://www.ejabberd.im/node/3851#comment-55267 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>I'm wondering why this limitation is maintained in Erlang?<br /> why not relaxed this limitation based on OS? since linux support more than 2GB address space should not the erlang runtime depend on it?</p></div> <p>No idea. You better ask Erlang developers about that.</p> Sat, 06 Feb 2010 16:26:06 +0000 zinid comment 55267 at https://www.ejabberd.im Erlang 2GB memory limit on 32bit processor https://www.ejabberd.im/node/3851#comment-55261 <p>I'm wondering why this limitation is maintained in Erlang?<br /> why not relaxed this limitation based on OS? since linux support more than 2GB address space should not the erlang runtime depend on it?</p> Thu, 04 Feb 2010 12:54:17 +0000 GP comment 55261 at https://www.ejabberd.im Compiled Erlang on 64bit https://www.ejabberd.im/node/3851#comment-55257 <p>Compiled Erlang on 64bit Linux machine and not able to reproduce the issue using jabsimul stress test tool...the memory consumption of ejabberd process crossed more than 2GB even sometime 3GB with heavy load...require some more testing, will update soon</p> <p>Thanks once again, Zinid</p> Wed, 03 Feb 2010 15:02:48 +0000 GP comment 55257 at https://www.ejabberd.im Re: Ejabberd 2.0.1 crashes when process memory https://www.ejabberd.im/node/3851#comment-55219 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Does Linux has the 2GB process memory limitation something similar in windows?</p></div> <p>This is a limitation of Erlang: it is unable to allocate more than 2-2.5Gb of heap on 32-bit machine.</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Do we can run 64-bit erlang in 32 linux machine?</p></div> <p>I think no.</p> Tue, 02 Feb 2010 02:10:37 +0000 zinid comment 55219 at https://www.ejabberd.im Thanks for response, https://www.ejabberd.im/node/3851#comment-55215 <p>Thanks for response, Zinid.</p> <p>erlang:system_info(wordsize) returned 4, </p> <p>we use Linux 32 bit multi-core processor machine with ejabberd 2.0.1 and erlang R12B-5 build from the source.</p> <p>Does Linux has the 2GB process memory limitation something similar in windows? Also the message queue length is zero across the crash dump</p> <p>Do we can run 64-bit erlang in 32 linux machine?</p> Mon, 01 Feb 2010 17:16:15 +0000 GP comment 55215 at https://www.ejabberd.im Re: Ejabberd 2.0.1 crashes when process memory reach https://www.ejabberd.im/node/3851#comment-55213 <ul> <li>Make sure you're using 64-bit Erlang. To check that, run:<br /> $ erl<br /> 1&gt; erlang:system_info(wordsize).<br /> 8 <p>Here 8 means 64-bit Erlang is used. This is important because of limitation of memory allocation on 32-bit platforms.</p></li> <li>In your crash dumps you should find memory consuming process. Typically there are only 1 or 2 such processes. To do that grep the crashdump with 'Message queue length' pattern, sort the result. Copy the snippet from =proc: to =proc: of most consuming process and paste it here.</li> <li>Please tell us the version of your ejabberd and Erlang.</li> </ul> Mon, 01 Feb 2010 16:19:48 +0000 zinid comment 55213 at https://www.ejabberd.im