Operating System - HP-UX
1753599 Members
6527 Online
108796 Solutions
New Discussion юеВ

Collecting java heap dump (HPROF file) from system core

 
Krishna R
Advisor

Collecting java heap dump (HPROF file) from system core

Hi,

I would like to know if we can collect heap dump from system core of a crashed java process.

JVM: 1.6.*
HP-UX: 11.23/31 ia64

Sun JDK has a 'jmap' utility which provides similar facility. I found from the below link one can do most operations like collecting the java stack frame using wdb, but couldn't find how to collect a HPROF file.
http://docs.hp.com/en/5992-4687/ch01s05.html

Though wdb has commands to inspect the heap objects, its not as sophisticated as Eclipse MAT which I feel as a preferred tool for analyzing java heap. Also, we have some custom analysis plugins for MAT which we will not be able to use for processes using HP-UX java.

Is there some mechanism to collect the heap dump from a system core file?

Thank you,
Krishna

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Collecting java heap dump (HPROF file) from system core

Have you contacted the Response Center to analyze your core files?
Krishna R
Advisor

Re: Collecting java heap dump (HPROF file) from system core

Hi Dennis,

We have a multi-threaded java application with native code too, using JNI.

Mostly application crashes due to bugs in native code. From analyzing stack backtrace, we can tell that its an application bug.

But we can get more state information of the process during the time of crash, if we can inspect the Heap dump.

Eclipse Memory Analyzer tool supports HPROF and IBM DTFJ, and we can obtain heap dumps from all other platforms, but didn't find a way for HPUX. Any suggestions would help.

~ Krishna