[erlang-questions] Making sense of MnesiaCore dumps
Ulf Wiger (TN/EAB)
ulf.wiger@REDACTED
Thu Aug 30 10:29:23 CEST 2007
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