<div dir="ltr">From what I've seen the crashdump doesn't really have any of the objects in the memory. If I have a string stuck in some mailbox or even just state inside a gen_server process, can I see it?</div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 7:20 AM, Geoff Cant <span dir="ltr"><<a href="mailto:nem@erlang.geek.nz" target="_blank">nem@erlang.geek.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Provided you're prepared to take down the node, you can erlang:halt("crashdump") and you'll get a dump of memory, heaps, tables, ... - erl_crash.dump file.<br>
<br>
You can view this in a web browser with crashdump_viewer.<br>
<br>
Crashdump debugging is unfortunate, but extremely useful. I use it on all my production systems.<br>
<br>
-G<br>
<div><div class="h5"><br>
> On 18/02/2014, at 16:00, Vladimir Ralev <<a href="mailto:vladimir.ralev@gmail.com">vladimir.ralev@gmail.com</a>> wrote:<br>
><br>
> Hello all,<br>
><br>
> As a Java developer I really miss being able to create a "heap dump" of a live Erlang VM where I can see the objects in each process and the current process stack variables/trace. I realise there is no java-like heap in Erlang but there are the processes, mailboxes, stacks, file handles, sockets, ets and so on.<br>


><br>
> In Java we can also use query tools to search the heaps for specific identifying strings/numbers/timestamps to find a graph of related objects. You can go find objects by type or find the stack variables for given thread. It would be very useful for understanding the system in production and diagnose issues.<br>


><br>
> Would it be possible to have something like this in Erlang or it is fundamentally not allowed?<br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>