[erlang-questions] Getting more info from crash dump file

Gustav Simonsson gustav.simonsson@REDACTED
Thu Dec 13 10:34:27 CET 2012


In the crashdump viewer, you can click on the process that spawned this
process (the "Spawned by" field) several times to go up the process
hierarchy of your application to see where in the process tree it was
Also, you can see it was executing a call to xmerl, and is linked to a
Erlang port, which should help you narrow down which process it was in your

Gustav Simonsson

On Thu, Dec 13, 2012 at 10:21 AM, cao xu <cao.xu@REDACTED> wrote:

> Hi,
> I got an erlang crash dump file on a 2G memory linux with following info:
> eheap_alloc: Cannot allocate 78362800 bytes of memory (of type "heap").
> =memory
> total: 1510245164
> processes: 1360838774
> processes_used: 1360720438
> The total memory consumed by the VM was about 1.5G and most of them were
> used by  process. According to the process info in the dump file, the
> biggest Stack+Heap was 15672560 and the owner's state was garbing. I am
> not sure whether the process was the killer of the whole VM.
> *Name* *Spawned as*proc_lib:init_p/5*State*Garbing (limited info)*Last
> scheduled in for*xmerl_scan:'-initial_state0/2-fun-1-'/2*Started*Tue Nov
> 6 17:00:39 2012*Spawned by*<0.48.0><http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=%3C0.48.0%3E>
> *Reductions*20600887*Stack+heap*15672560*OldHeap*8024355*Heap unused*202*OldHeap
> unused*8024355*Number of heap fragments*1*Heap fragment data*119*Program
> counter*0x02ea24dc (xmerl_scan:'-initial_state0/2-fun-1-'/2 + 4)*Continuation
> pointer*0x02e8a254 (xmerl_scan:scan_char_data/5 + 2408)*Arity* *Link list*
> [#Port<0.16239279><http://localhost:8888/cdv_erl/crashdump_viewer/port?port=Port%3C0.16239279%3E>
> , <0.48.0><http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=%3C0.48.0%3E>
> ]*Msg queue length*0
> Is there a way to find out  which process  or function call was the reason
> of the allocating action, and how can I get more info from the dump file to
> help locating the error?
> Thanks.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121213/4daf6b85/attachment.htm>

More information about the erlang-questions mailing list