[erlang-questions] how to debug memory leaks?

mabrek mabrek@REDACTED
Sat Dec 4 12:20:27 CET 2010


On Sat, Dec 4, 2010 at 2:11 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> 1) introspect following metrics:  message_queue_len, memory, heap_size

message_queue_len is zero, memory and heap_size grow slowly.

> 2) add
> handle_info(dump_state, State) -> io:format("State: ~p~n", [State]),
> {noreply, State};

It requires runtime code modification in suspected process to be
implemented properly. io:format ~p shortens long lists.

Is there more general solution to get analyzable heap dump of running process?

Regards,
Anton Lebedevich.


More information about the erlang-questions mailing list