How can I get an HPROF heap dump?Are you running an AS Java Weekstone with SAP JVM...
...or a plain Java Application?
All options to get an HPROF dump in detail... via Java VM parameters (see ConfigTool on how to set those for AS Java installations):
via tools:
Heap dump will be written to the working directory.
If you run into problems opening a heap dump with the SAP Memory Analyzer (Error message: "Unrecognized heap dump sub-record type"), please let us know. This indicates a corrupt heap dump file. In this case we would like to learn which tool/approach you have chosen to dump the heap. When HPROF heap dumps are NOT written on OutOfMemoryError?Heap dumps are not written on OutOfMemoryError for the following reasons:
As for the C heap, the best way to see that you won't get a heap dump is if it happens in C code (eArray.cpp in the example below): # An unexpected error has been detected by SAP Java Virtual Machine: # java.lang.OutOfMemoryError: requested 2048000 bytes for eArray.cpp:80: GrET*. Out of swap space or heap resource limit exceeded (check with limits or ulimit)? # Internal Error (\\...\hotspot\src\share\vm\memory\allocation.inline.hpp, 26), pid=6000, tid=468
C heap problems may arise for different reasons, e.g. out of swap space situations, process limits exhaustion or just address space limitations, e.g. heavy fragmentation or just the depletion of it on machines with limited address space like 32 bit machines. The hs_err-file will help you with more information on this type of error. Java heap dumps wouldn't be of any help, anyways. Also please note that a heap dump is written only on the first OutOfMemoryError. If the application chooses to catch it and continues to run, the next OutOfMemoryError will never cause a heap dump to be written! How can I get an IBM system dump?How to get an IBM system dump to be analyzed with Memory Analyzer + DTFJ Adapter depends on the concrete IBM system / JVM. The following resources should provide the necessary description:
|
Comments (7)
Jun 13, 2008
Martin Mitry says:
java.lang.NullPointerException when opening head dump file I get the above error...java.lang.NullPointerException when opening head dump file
I get the above error when opening a heap dump.
The head dump (400 MB) file was created with -XX:+HeapDumpOnOutOfMemoryError on the following system:
Error Message
Stack Trace
An internal error occurred during: "Parsing heap dump from '...java_pid10848.hprof'".
Is the file corrupt or it is a problem with the Memory Analyzer ?
THANK YOU
Jun 13, 2008
Andreas Buchen says:
Hi Martin, I have created Bugzilla Bug 237030 to track your bug report. If you ...Hi Martin,
I have created Bugzilla Bug 237030 to track your bug report. If you want to get email notifications about changes, add yourself to the CC list.
Kind regards,
Andreas.
Jun 13, 2008
Martin Mitry says:
i just did THANK YOU !!i just did
THANK YOU !!
Sep 05, 2008
Venkat Dukkipati says:
Guys, Does this work for IBM AIX 5.3 boxes. Our OS is AIX 5.3 and DB is Oracle ...Guys,
Does this work for IBM AIX 5.3 boxes. Our OS is AIX 5.3 and DB is Oracle 10g and SAP in NW 7.0. Can we use Memory Analyzer?
Regards
Apr 22, 2010
Gonçalo Mouro Vaz says:
Hello, When the system is generating the heap dump file, is it possib...Hello,
When the system is generating the heap dump file, is it possible to generate it to a different folder rather than the standard one: /usr/sap/<SID>/J<instance>/j2ee/cluster/server<node>/
Best regards,
Mouro Vaz
Apr 23, 2010
Gonçalo Mouro Vaz says:
Hello, Yes, it's possible (OSS Note 1004255) Cheers. Mouro VazHello,
Yes, it's possible (OSS Note 1004255)
Cheers.
Mouro Vaz
Feb 01, 2011
Christoph Gerstle says:
Hi, can I add -XX:+HeapDumpOnCtrlBreak "feature" to the jmap command? ...Hi,
can I add -XX:+HeapDumpOnCtrlBreak "feature" to the jmap command?
Thanks,
Christoph