<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello,</div><div><br></div><div>I would aree with Bob about most probable root cause. You can use entop to check message queue length and used memory per-process.<br><br>Best Regards,<div>Dmitry >-|-|-*></div><div><br></div></div><div><br>On 23.5.2013, at 5.21, Bob Ippolito <<a href="mailto:bob@redivi.com">bob@redivi.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">This kind of thing tends to happen when you continuously send messages to a process faster than it can handle them. The most common case that I've seen this is where you have a lot of processes communicating with a single gen_server process. If your server has swap enabled, this may appear to make the node "freeze completely but not crash".<div>
<br></div><div style="">In the past I've diagnosed this by monitoring the message_queue_len of registered processes, but I'm sure there are tools that can help do this for you.</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, May 22, 2013 at 7:00 PM, Morgan Segalis <span dir="ltr"><<a href="mailto:msegalis@gmail.com" target="_blank">msegalis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hello everyone,<div><br></div><div>I'm having a bit of an issue with my production servers.</div><div><br></div><div>At some point, it seems to enter into an infinite loop that I can't find, or reproduce by myself on the tests servers.</div>
<div><br></div><div>The bug appear completely random, 1 hour, or 10 hour after restarting the Erlang node.</div><div>The loop will eat up all my server's memory in no time, and freeze completely the Erlang node without crashing it. (most of the time)</div>
<div><br></div><div>One time I got an crash dump, and tried to investigate it with cdv, but I didn't get much informations about which process or module was eating up all the memory.</div><div>I just know that it crashed because of the crash message : "<span style="font-family:Times">eheap_alloc: Cannot allocate 6801972448 bytes of memory (of type "heap")."</span></div>
<div><br></div><div>I'm surely too new to Erlang to investigate something like this with cdv, I really would like some pointers on how I can understand this problem and fix it asap.</div><div><br></div><div>If you need any informations about the crash dump, let me know what you need, I'll copy/pasteā€¦</div>
<div><br></div><div>I'm using <span style="font-family:Times">Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:true]</span></div><div><br></div><div>Thank you all for your help !</div>
<div><br></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>