How do I analyze a .mdmp file?
Asked Answered
E

2

14

I have java application that is crashing while in production. It doesn't do so in dev/QA. The jvm is creating a .mdmp file and a text file. How do I analyze the binary dump file? I googled but had no luck. We are using bea jrockit jvm 1.5 R27.

Execrative answered 14/7, 2010 at 4:29 Comment(0)
T
6

The .mdmp file is a Windows MiniDump file that you can only read with a debugger (like WinDbg). Typically you need the sources of the crashed application to really get some information out of the dump. So in your case you can't do much but contacting JRockit support.

Here a link to the Orace JRockit information about JVM crahes.

Trivial answered 9/8, 2010 at 18:30 Comment(1)
I have found (Tool for analyzing java core dump) #951595. Does it mean it is still possbile to open mdmp files on our own?Guzman
F
2

.mdmp files are the Windows equivalent of unix/linux core dumps. You can analyse them with WinDBG but if it's a Java process that has crashed most likely you'll want to use Java's own tools to analyse the crashed process.

If you want to look at the heap of the crashed Java process you can use a tool that ships with the JDK called jmap to extract a HPROF file from a .core or .mdmp and then load this into a memory analyser. Note also that some memory analyzers can load core dumps and Windows minidumps directly.

Related issue and the jmap docs

If you want to see the state of the threads then you can use a tool called jstack to print stack traces for every thread at the point the dump was created. jstack docs.

Flabbergast answered 14/9, 2018 at 8:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.