analysis – How to analyze information from a Java core dump?

analysis – How to analyze information from a Java core dump?

Okay if youve created the core dump with gcore or gdb then youll need to convert it to something called a HPROF file. These can be used by VisualVM, Netbeans or Eclipses Memory Analyzer Tool (formerly SAP Memory Analyzer). Id recommend Eclipse MAT.

To convert the file use the commandline tool jmap.

# jmap -dump:format=b,file=dump.hprof /usr/bin/java core.1234

where:

dump.hprof is the name of the hprof file you wish to create

/usr/bin/java is the path to the version of the java binary that generated the core dump

core.1234 is your regular core file.

If you are using an IBM JVM, download the IBM Thread and Monitor Dump Analyzer. It is an excellent tool. It provides thread detail and can point out deadlocks, etc. The following blog post provides a nice overview on how to use it.

analysis – How to analyze information from a Java core dump?

Maybe VisualVM can help (havent yet had a chance to try it myself). Link:

http://java.sun.com/javase/6/docs/technotes/guides/visualvm/coredumps.html

Leave a Reply

Your email address will not be published.