<div>Certain objects, such as binaries and ets tables, live in different memory than that of each process. If you have lots of those, then that might explain the rest of the memory.</div><div>Also, if you look at what each process is doing, is any process "garbing"? If so, it probably is using more memory temporarily for the new block it's compacting into.</div>
<div> </div><div>Sincerely,</div><div> </div><div>jw</div><div><br clear="all"><br>--<br>Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. <br>
<br>
<br><br></div><div class="gmail_quote">On Fri, Jul 8, 2011 at 7:28 AM, Magnus Falk <span dir="ltr"><<a href="mailto:magnus.falk@gmail.com">magnus.falk@gmail.com</a>></span> wrote:<br><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote">
<div>This is a copy of a question I asked over at StackOverflow that noone has been able to answer yet: <a href="http://stackoverflow.com/questions/6616101/examining-erlang-crash-dumps-how-to-account-for-all-memory" target="_blank">http://stackoverflow.com/questions/6616101/examining-erlang-crash-dumps-how-to-account-for-all-memory</a></div>

<div><br></div><div>I've been poring over this Erlang crash dump where the VM has run out of heap memory. The problem is that there is no obvious culprit allocating all that memory.<br></div><br>Using some serious black awk magic I've summed up the fields Stack+heap, OldHeap, Heap unused and OldHeap unused for each process and ranked them by memory usage. The problem is that this number doesn't come even close to the number that is representing the total memory for all the processes processes_used according to the Erlang crash dump guide.<br>

<br>I've already tried the Crashdump Viewer and either I'm missing something or there isn't much help there for my kind of problem.<br><br><div>The number I get is 525 MB whereas the processes_used value is at 1348 MB. Where can I find the rest of the memory?<br>

</div><div><br></div><div>Cheers,</div><div>Magnus</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>