Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

IBM Monitoring and Diagnostic Tools for Java - Diagnostics Collector Version 1.0

IBM provides tooling and documentation to assist in the understanding, monitoring, and problem diagnosis of applications and deployments running IBM Runtime Environments for Java.

The IBM Monitoring and Diagnostic Tools for Java - Diagnostics Collector is a tool that automatically gathers Java diagnostic information if the IBM Java VM detects a problem.

Diagnostics Collector Overview

The Diagnostics Collector starts automatically when a running Java Virtual Machine detects a problem. It searches for diagnostics files produced by the Java Virtual Machine for the problem event and stores them in a zip file. If a system dump is present, the Diagnostics Collector runs jextract on the dump and collects the jextract output.

Use the Diagnostics Collector to:

Features and benefits

The objective of the Diagnostics Collector tool is to make it easier for you to collect all the Java diagnostics files for a problem event.

Collecting diagnostics from Java runtime problems

The Diagnostics Collector produces an output file for problem events that occur in your Java application.

When you add the command-line option -Xdiagnosticscollector, the Diagnostics Collector runs and produces several output .zip files. One file is produced at startup. Another file is produced for each dump event that occurs during the lifetime of the JVM. For each problem event that occurs in your Java application, one .zip file is created to hold all the diagnostics for that event. For example, an application might have multiple OutOfMemoryErrors but keep on running. Diagnostics Collector produces multiple .zip files, each holding the diagnostics from one OutOfMemoryError.

The Diagnostics Collector copies files that it writes to the output .zip file. It does not delete the original diagnostics information.

When the Diagnostics Collector finds a system dump for the problem event, then by default it runs jextract to post-process the dump and gather context information This information enables later debugging. Diagnostics Collector automates a manual step that is requested by IBM support on most platforms.

Verifying your Java diagnostics configuration

When you enable the command-line option -Xdiagnosticscollector, a diagnostics configuration check runs at Java VM start up. The aim of the diagnostics configuration check is to avoid the situation where a problem occurs after a long time, but diagnostics are missing because they were inadvertently switched off. If the diagnostics configuration check detects any settings that disable key Java diagnostics, a warning is reported.

For extra thorough checking, the Diagnostics Collector can trigger a Java dump. The dump provides information about the command-line options and current Java system properties.

Checks for operating system settings are carried out on Linux® and AIX®. On Linux, the core and file size ulimits are checked. On AIX®, the settings fullcore=true and pre430core=false are checked, as well as the core and file size ulimits.

System requirements

The minimum Java levels for Diagnostics Collector are IBM Java 5.0 or IBM Java 6.

The supported platforms for the Health Center agent are:

Installation

The Diagnostics Collector is available from the download page.

Contact information

For comments specific to this download please send mail directly to us.

Speak to the developers at the Java Tools forum.