0% found this document useful (0 votes)
126 views1 page

Java Core Dump

The document outlines the steps to take a core dump of a Java process including manually generating the core dump with the kill command, using Jextract to extract the core dump file into an XML file, and using jdmpview to view the core dump file and generate a heap dump file.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
0% found this document useful (0 votes)
126 views1 page

Java Core Dump

The document outlines the steps to take a core dump of a Java process including manually generating the core dump with the kill command, using Jextract to extract the core dump file into an XML file, and using jdmpview to view the core dump file and generate a heap dump file.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 1

Please find the below steps for taking the core dump.

1. Core dump can be generated manually by kill the process using the following c
ommand
$kill -6 <pid>
2. The core dump file will be created in the MPAYTXNEBGINE folder or /root/javac
oredump
3. Jextract Tool is used to extract the core.xxxxxxxx.dmp file to core.xxxxxxx.d
mp.xml file
4. Jextract tool is available in the path $ cd /usr/<java directory>/jre/bin
5. Use Jextract to extract the generated core.xxxx.dmp to core.xxx.zip file.
6. Consider the coredump file is generated in the location
/usr/Message24/core.20140217.121318.12320792.0001.dmp
7. Change the directory to $ cd /usr/<java directory>/jre/bin
Use jextract and provide the command as
? $jextract /usr/Message24/core.20140217.121318.12320792.0001.dmp [/usr/Message2
4/core.20140217.121318.12320792.0001.dmp.xml]
8. Change the directory to cd /usr/<java directory>/bin
Use jdmpview and provide the command as
$ jdmpview -core /usr/Message24/core.20140217.121318.12320792.0001.dmp [-xml
/usr/Message24/core.20140217.121318.12320792.0001.dmp.xml]
9. Use jdmpview heapdump option to generate the heapdump file (*.phd) file.
Provide the command as
$ jdmpview -core /usr/Message24/core.20140217.121318.12320792.0001.dmp [-xm
l /usr/Message24/core.20140217.121318.12320792.0001.dmp.xml]
./jextract /weblogic/core.20140316.005705.4194308.0001.dmp
./jextract /weblogic/core.20140316.005705.4194308.0001.dmp [/weblogic/core.20140
316.005705.4194308.0001.dmp.xml]
./jdmpview -core /weblogic/core.20140316.005705.4194308.0001.dmp [/weblogic/core
.20140316.005705.4194308.0001.dmp.xml]
./jdmpview -core /weblogic/core.20140316.005705.4194308.0001.dmp /weblogic/core.
20140316.005705.4194308.0001.dmp.zip

You might also like