How to create a heap dump of the SAP AS Java?

Method 1
Step1.  Get ready with server0 PID

Step 2. Start jvmmon executable located in /usr/sap<SID>/SYS/exe/run/sapjvm_5/bin

Step 3. Type "dump heap" command

Method 2
You can also start jvmmon GUI  using executable jvmmon -gui.exe

Method 3

Create a heap dump using the JStart monitoring program (jsmon)
Start jsmon executable located in /usr/sap/<SID>/SYS/exe/uc/<OS> and specify the profile example: jsmon pf=/usr/sap/<SID>/SYS/profile/<PROFILE_FILE_NAME>
Execute the command process view and notice the idx of the server process you want to create a heap dump of
Execute the command hsdump idx to create a heap dump of the process having index = idx
The heap will be dumped into big file with extension .hprof located in \usr\sap\SID\JCXX\j2ee\cluster\server0 folder



Tags: How to create a heap dump of the SAP AS Java, jsmon, heap dump using the JStart monitoring program (jsmon),  jvmmon GUI ,-XX:+HeapDumpOnOutOfMemoryError, 
Share this article :

Post a Comment

 
Copyright © 2011. SAP BASIS ANSWERS | SAP BASIS ADMIN BLOG - All Rights Reserved
T C P M
Proudly powered by Blogger