Smarts ESM: How to gather java stack (jstack) information of the ESM server process
search cancel

Smarts ESM: How to gather java stack (jstack) information of the ESM server process

book

Article ID: 331967

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

To gather jstack information invoke the below command:
./jstack -l <ESM_Server_PID> > jstack_output
 
In the case where ESM server is not responding or hung, jstack can be invoked with the following command:
./jstack -F -l <ESM_Server_PID> > jstack_output
 
When jstack command is not on your machine, do the following:
Download the non rpm form of JDK, i.e.  jdk-XXXX-linux-x64.tar.gz and extract in to a directory (This will not be an installation. From the extracted directory, jstack can be invoked)


Additional Information

Installing the JDK

1. Download the "Java SE Development Kit" non RPM version from oracle

jdk-xxxx-linux-x64.tar.gz

2. Extract the jdk to /opt
  1. sudo mv jdk-xxxx-linux-x64.tar.gz /opt
  2. sudo cd /opt
  3. sudo tar -xzf jdk-xxxx-linux-x64.tar.gz
  4. sudo rm jdk-xxxx-linux-x64.tar.gz
  5. sudo ln -s jdkXXXX jdk
  6. cd /opt/jdk/bin
  7. Execute the jstack commands here from the bin directory
Note: This will not be an installation. From the extracted directory, jstack can be invoked.