[erlang-questions] Making sense of MnesiaCore dumps

Dan Gudmundsson dgud@REDACTED
Thu Aug 30 11:40:34 CEST 2007


mnesia_lib:view(File).

/Dan


Filippo Pacini wrote:
> 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
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list