Generating Java thread dump
1. Using NWA:
Login to Java NWA.
[Link]
Navigate to Troubleshooting Advanced Troubleshooting
Click on “Thread Dump Analysis”
Click on “Generate Thread Dump”
An additional window opens up where you can select the specific server and its server node.
Click “OK” and the thread dump would be generated which can be seen in the list.
The thread dump can then be downloaded for analysis.
2. Java Thread Dump generation using jsmon.
Incase your NWA is inaccessible due to some reason, you can trigger a thread dump using jsmon
from OS level.
Login to the specific server as ‘sidadm’ and execute jsmon.
Run process view and get a list of the process id for the corresponding server node.
Imagine if you need thread dump for server 0 , specify the id ‘Idx’ for the same to get a thread dump
for the same.
The thread dump would be written to the below files.
/usr/sap/SID/<Instance>/work/std_server<node>.out
/usr/sap/SID/<Instance>/work/dev_server<node>
3. Java Thread dump generation using SAP MMC:
Login to SAP MMC using port “5<Instance no>13”
For example for XWP server kfsapxwp03, the url used should be.
[Link] ( Use Internet explorer)
After a while, the MMC tool opens up.
Now drop down the server for which you need the thread dump as shown below.
Click on “Process table”
Right click on whichever server node for which thread dump is required for and click on ‘Dump
Trace’
The thread dump would be written to the below files.
/usr/sap/SID/<Instance>/work/std_server<node>.out
/usr/sap/SID/<Instance>/work/dev_server<node>