[erlang-questions] Investigate an infinite loop on production servers

Morgan Segalis msegalis@REDACTED
Thu May 23 04:00:07 CEST 2013


Hello everyone,

I'm having a bit of an issue with my production servers.

At some point, it seems to enter into an infinite loop that I can't find, or reproduce by myself on the tests servers.

The bug appear completely random, 1 hour, or 10 hour after restarting the Erlang node.
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)

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.
I just know that it crashed because of the crash message : "eheap_alloc: Cannot allocate 6801972448 bytes of memory (of type "heap")."

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.

If you need any informations about the crash dump, let me know what you need, I'll copy/paste…

I'm using Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:true]

Thank you all for your help !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130523/5f66a3fe/attachment.htm>


More information about the erlang-questions mailing list