Java Core Dump
Java 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