NexJ Logo

Generating a heap dump

You can generate a heap dump for a node to get the state of Java memory.

You can also generate a heap dump for a cluster. Generating a cluster-level heap dump creates a separate heap dump file for each node in the cluster. The name and location of each heap dump file display in the log of the corresponding node.

Heap dumps execute asynchronously, both for clusters and individual nodes. 

If your environment file includes the statAvailability attribute, ensure that it is set to distributed to enable thread dumps at the cluster level.

To generate a heap dump for a node:

  1. In NexJ System Admin Console, navigate to the Statistics page.
  2. In the list in the Statistics area, locate and expand the node on which to generate the heap dump, and select DiagnosticsFor example, navigate to:
    <
    application_name>/<node_name>/Diagnostics
    Available commands display in the details area on the bottom right.
  3. Double-click the dumpHeap command in the details area. The Invoke dumpHeap command dialog opens. 
  4. Click InvokeThe heap dump executes. If the heap dump is for the current node, the location of the dump file displays in the Result area, and the name and location of the dump file display in the log. If the heap dump is for a different node, the name and location of the dump file display in the log of the node.
  5. Click the Close button  on the top right corner of the dialog. The Invoke dumpHeap command dialog closes.

You have generated a heap dump for a node.