How to analyze core dump of Solaris after crashing of JBoss instance

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • Solaris
    • Core dump after jvm crashed

Issue

  • How to analyse core dump which has been created by Solaris after crashing of JBoss instance ?

Resolution

Since the core dump contains information regarding patches and native libraries of the operating system (in this case Solaris), the Operating System (OS) vendor is better placed to analyse it. Contact the Oracle support team for further assistance in analysing the core dump.

Red Hat can analyse the heap dump and thread stacks, which can be extracted from the core dump.

  • Extracting thread dump using jstack
    $JAVA_HOME/bin/jstack $JAVA_HOME/bin/java <core-file>
/usr/java/jdk1.7.0_60/bin/jstack  /usr/java/jdk1.7.0_60/bin/java core.12989 
  • Extracting Heap dump using jmap
    $JAVA_HOME/bin/jmap -dump:format=b,file=heapdump.hprof $JAVA_HOME/bin/java <core-file>
/usr/java/jdk1.7.0_60/bin/jmap -dump:format=b,file=heapdump.hprof /usr/java/jdk1.7.0_60/bin/java core.12989 

NOTE $JAVA_HOME should match that used to start up the JBoss EAP instance.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments