NexJ Logo

Generating a thread dump

You can generate a thread dump for a node to get a snapshot of the state of all threads.

You can also generate a thread dump for a cluster. Generating a cluster-level thread dump creates a separate thread dump file for each node in the cluster. The name and location of each thread dump file display in the log of the corresponding node. Thread dumps for clusters and for individual nodes other than the current node execute asynchronously.

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 thread 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 thread dump, and select Diagnostics. For example, navigate to: <application_name>/<node_name>/Diagnostics
    Available commands display in the details area on the bottom right.
  3. Double-click the dumpThreads command in the details area. The Invoke dumpThreads command dialog opens.
  4. Click InvokeThe thread dump executes. If the thread dump is for the current node, the name and location of the dump file display in the Result area and the log. If the thread dump is for a different node, the name and location of the dump file display only in the log of the node.
  5. Click the Close button  on the top right corner of the dialog. The Invoke dumpThreads command dialog closes.

You have generated a thread dump for a node.