[erlang-questions] Making sense of MnesiaCore dumps

Filippo Pacini <>
Thu Aug 30 11:24:03 CEST 2007


Or use webtool.

1> webtool:start().
WebTool is available at http://localhost:8888/
Or  http://127.0.0.1:8888/
{ok,<0.35.0>}

Then open your browser and load the core dump file.

filippo

Ulf Wiger (TN/EAB) wrote:
> HJ Muller wrote:
>> Hi everyone,
>>
>> Is there anyway to make sense of an mnesia core dump ?
>> I have about 20 core dumps of +/-40Mb each, and I can't even make sense
>> of one. Is there maybe some tool that can use ?
> 
> AFAIR:
> 
> {ok, Bin} = file:read_file(CoreDump).
> Term = binary_to_term(Bin).
> {ok,Fd} = file:open(CoreDump ++ ".txt", [write]).
> io:fwrite(Fd, "~p~.~n", [Term]).
> file:close(Fd).
> 
> Then you have the dump as pretty-printed text
> in a file.
> 
> (Note, the above is written from memory - not verified).
> 
> BR,
> Ulf W




More information about the erlang-questions mailing list