How to create java heap dump for debuging any jvm related issues in Oracle Apps

If you are facing JVM related error in Oracle Apps R12 for identifying exact cause of error, you can generate the JVM Heap dumps for identifying exactly
why the JVM heaps were utilized more or encountered any error.

You need to add the parameter '-XX:+HeapDumpOnOutOfMemoryError' and '-XX:HeapDumpPath' to the line containing JVM heap size details in opmn.xml file present under $INST_TOP/ora/10.1.3/opmn/conf in E-Business suite R12 as following.

wrapper.bin.parameters=-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+UseTLAB -XX:+HeapDumpOnOutOfMemoryError - XX:HeapDumpPath=/oracle/prodora/iAS/Apache/Jserv/logs

Save the changes in and bounce opmn services for the changes to take effect. Now keep on monitoring the JVM and check for the files generate with phd format. The file format may vary depending on OS. Then you may use various OS tools to analyze the heap dump details. You may contact your OS administrator to analyze the heap dump details.  Generated trace file can be analyzed using 3rd party tools like Solaris tool jhat, IBM HeapAnalyzer, Eclipse Memory Analyzer.


For further reference on this issue. See the following metalink docs.

How to create a Java heapdump on e-Business Suite ? (Doc ID 835909.1)
Generate JVM heap dump in E-Business suite 11i and R12 (Doc ID 462550.1)

No comments :