The gadget spec URL could not be found

How to create a thread dump for the SAP J2EE Engine using JCMON and JSMON

Requirement :  You are using the J2EE Engine and want to create a thread dump from all Java threads running on a Java node.

For SAP Java engine 6.40 / 7.0 we will use sap tool JCMON.
For SAP Java engine 7.1 or higher we will use JSMON .

1. Creating thread dump using JCMON  (UNIX / LINUX)
1.1 Start JCMON tool by executing following command at OS level.
                        jcmon pf=/usr/sap/<SID>/SYS/profile/<instance_profile>   
for example:   jcmon pf=/usr/sap/EPD/SYS/profile/EPD_JC20_sapepdci  

1.2 You will get below screen once tool is launched. Enter 20 to launch "Local Administration Menu".
SAP JAVA tool JCMON

1.3 
Choose the "Dump stacktrace" menu item by entering its number
SAP Java create thread dump using jcmon

Once you select  menu option 10 (Dump stacktrace) , it will prompt you for the process index, enter the process index of required server node and enter 'Y' to confirm.
After completion, you will find the thread dump in the /usr/sap/<SID>/<Instance>/work/std_<node name>.out ,in our case the file would be std_server0.out.

The gadget spec URL could not be found


2. Creating thread dump using JSMON (UNIX / LINUX)  for SAP Java 7.1 systems 
2.1 Start JSMON tool by executing following command at OS level.
                        jsmon pf=/usr/sap/<SID>/SYS/profile/<instance_profile>   
for example:   jsmon pf=/usr/sap/PPD/SYS/profile/PPD_10_sapppdci  
SAP Java launch JSMON

2.1 Enter command "process view" in JSMON to see the running process details. 
JSMON create thread dump

Now enter command "process vmdump <process index>" for example "process vmdump 2" to trigger thread dump.
After completion, you will find the thread dump in the /usr/sap/<SID>/<Instance>/work/std_<node name>.out ,in our case the file would be std_server0.out.



Please note that if you have parameter -XX:+HeapDumpOnCtrlBreak set in configtool , Creating thread dump will trigger a heap dump as well.
It will generate heap dumps in the /usr/sap/<SID>/<instance>/j2ee/cluster/server<N> folder and Output file name format is java_<pid>.hprof
 
Reference
Note 710154 - How to create a thread dump for the J2EE Engine 6.40/7.0

The gadget spec URL could not be found