IBM Support

Mustgather: Gathering data for a Java application crash problem on Windows

Troubleshooting


Problem

If your Java application crashes on a Windows operating system, there are a number of diagnostic data files that are useful for diagnosing the problem. This mustgather document describes about the diagnostic data files to be collected and the procedure to collect the same.

Cause

Document Link Icon

Resolving The Problem

The following set of diagnostic data files will be generated during the time of the java application crash:
1. Javacores
2. Core dumps
3. Snap traces
4. JIT dumps (For Java 7.1 and Java 8 releases only)
5. Application logs (stdout, stderr)

For these diagnostic data files to be created, check that the system is configured correctly as per setup document.

NOTE: From Java 7.1 and Java 8 releases onwards, Just Intime Compiler(JIT) generates JIT diagnostic dumps on general protection fault(GPF) and abort events.

Please collect the diagnostic data files generated during the time of the java application crash as per the below steps:



1. Collect the javacore, core dump, snap trace and JIT dump generated.

Please note that all the javacore, core dump, snap trace and JIT dump generated can be found in the current path and the names of them will follow the below format:
Javacore : javacore.<time stamp>.<id>.txt
Core dump : core.<time stamp>.<id>.dmp
Snap trace file : snap.<time stamp>.<id>.trc
JIT dump : jitdump.<time stamp>.<id>.dmp

For Java 6 and 5 SDK releases,

Run the JExtract tool against the generated core dump using the following command:
<installpath>/jre/bin/jextract [coredump]

For 64bit JVM enabled with -Xcompressedrefs option, please use
<installpath>/jre/bin/jextract -J-Xcompressedrefs [coredump]

Save the resulting archive file, which has a name in the format of
core.<time stamp>.<id>.dmp.zip


From Java™ 7 SDKs on Windows platforms, you do not need to run the jextract utility.

In case, if the core dump is not generated as expected using -Xdump option as in setup, please refer and use the Microsoft ADPlus tool to generate the core dump at the time of crash as appropriate and send us for diagnosing the problem.

2.Collect the console logs, such as standard out and standard error logs, which are generated by default.

After collecting all the above diagnostic data files, you can submit them for help with diagnosing the problem.

[{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Crash","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;7.1;7.0;6.1;6.0;5.0","Edition":"J2SE","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21222654