Using JConsole to generate a heap dump.

Using JConsole to generate a heap dump.

book

Article ID: KB0088357

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
============
JConsole is a GUI tool that can be used to monitor both local and remote applications. You can use it to generate a heap dump within the Java heap.

Environment:
===========
All

Resolution:
============

1). Append the following properties to a deployed application tra file.

java.property.com.sun.management.jmxremote=true
java.property.com.sun.management.jmxremote.port=50050
java.property.com.sun.management.jmxremote.authenticate=false
java.property.com.sun.management.jmxremote.ssl=false

2). Restart the application.

3). Start JConsole.

The jconsole executable can be found in JDK_HOME/bin, where JDK_HOME is the directory in which the JDK is installed. You start JConsole by typing the following command at the command line.

% jconsole

After JConsole is started, the GUI shows the PID of the BW application and you can connect to the application by PID.

4). Generate heap dump.

Click on the MBeans tab. The tree on the left shows all of the MBeans currently running. Select the HotSpotDiagnostic MBean under com.sun.management. Click on Operations. On the right you can find the dumpHeap operation. Specify a heap dump output file with an absolute path in the p0 parameter. Then invoke the dumpHeap operation.

Issue/Introduction

Using JConsole to generate a heap dump.