IBM Support

Mustgather: Setup for diagnosing 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 required settings to be in place in order to generate those diagnostic data files.

Resolving The Problem

In order to collect the diagnostic data files required for diagnosing the crash problems, check that the following specific settings are configured before running your application:

1. Enable javacore generation
2. Enable the full crash dump generation
3. Enable core dump generation
Please enable full dump settings for Windows.
4. Enable snap trace generation

Please note that all the javacore, core dump and snap trace generation can be enabled using the below single Xdump option:
-Xdump:java+system+snap:events=gpf+abort

In case, if the above Xdump option does not generate the core dump as expected, please refer and use the Microsoft ADPlus tool to generate the core dump at the time of crash as appropriate.

For more details about enabling these settings, please see the related information links.

 

An easier way to collect these mustgathers is to use the IBM® Monitoring and Diagnostic Tools for Java - Diagnostics Collector.

Using the IBM Monitoring and Diagnostic Tools for Java - Diagnostics Collector

Information about installing and configuring the Diagnostics Collector is provided at:
https://www-01.ibm.com/support/knowledgecenter/SSYKE2_7.0.0/com.ibm.java.win.70.doc/diag/tools/diag_collector.html



Ideally, install the IBM Diagnostics Collector at the same time as your Java application is installed and setup. The reason is to collect first failure data immediately from the application run. The IBM Diagnostics Collector produces an archive containing all the information required for Java first pass analysis.

NOTE: From Java 8 releases, the diagnostic collector utility tool is removed. Instead, IBM® Support Assistant Data Collector can be used.

[{"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:
11 February 2020

UID

swg21222468