<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I got an erlang crash dump file on a 2G memory linux with following info:</div><div><br></div><div><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">eheap_alloc: Cannot allocate 78362800 bytes of memory (of type "heap").</span></div><div><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><div>=memory</div><div>total: 1510245164</div><div>processes: 1360838774</div><div>processes_used: 1360720438</div></span></div><div><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div><span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><span class="Apple-tab-span" style="white-space:pre"> </span></span>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 <span style="color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-right; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">15672560 </span>and the owner's state was garbing. I am not sure whether the process was the killer of the whole VM. </div><div><br></div><div><table border="4" cols="4" width="100%" style="font-family: Times; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><tbody><tr><td nowrap="true"><b>Name</b></td><td colspan="1"> </td><td nowrap="true"><b>Spawned as</b></td><td colspan="1">proc_lib:init_p/5</td></tr><tr><td nowrap="true"><b>State</b></td><td colspan="1">Garbing (limited info)</td><td nowrap="true"><b>Last scheduled in for</b></td><td colspan="1">xmerl_scan:'-initial_state0/2-fun-1-'/2</td></tr><tr><td nowrap="true"><b>Started</b></td><td colspan="1">Tue Nov 6 17:00:39 2012</td><td nowrap="true"><b>Spawned by</b></td><td colspan="1"><a href="http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=%3C0.48.0%3E" target="main"><0.48.0></a></td></tr><tr><td nowrap="true"><b>Reductions</b></td><td colspan="3">20600887</td></tr><tr><td nowrap="true"><b>Stack+heap</b></td><td>15672560</td><td nowrap="true"><b>OldHeap</b></td><td>8024355</td></tr><tr><td nowrap="true"><b>Heap unused</b></td><td>202</td><td nowrap="true"><b>OldHeap unused</b></td><td>8024355</td></tr><tr><td nowrap="true"><b>Number of heap fragments</b></td><td>1</td><td nowrap="true"><b>Heap fragment data</b></td><td>119</td></tr><tr><td nowrap="true"><b>Program counter</b></td><td colspan="3">0x02ea24dc (xmerl_scan:'-initial_state0/2-fun-1-'/2 + 4)</td></tr><tr><td nowrap="true"><b>Continuation pointer</b></td><td colspan="3">0x02e8a254 (xmerl_scan:scan_char_data/5 + 2408)</td></tr><tr><td nowrap="true"><b>Arity</b></td><td colspan="3"> </td></tr><tr><td nowrap="true"><b>Link list</b></td><td colspan="3">[<a href="http://localhost:8888/cdv_erl/crashdump_viewer/port?port=Port%3C0.16239279%3E" target="main">#Port<0.16239279></a>, <a href="http://localhost:8888/cdv_erl/crashdump_viewer/proc_details?pid=%3C0.48.0%3E" target="main"><0.48.0></a>]</td></tr><tr><td nowrap="true"><b>Msg queue length</b></td><td colspan="3">0</td></tr></tbody></table><div><br></div></div><div><br></div><div>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?</div><div><br></div><div>Thanks.</div></body></html>