Thread-Dumps from a BW application can be generated using different ways:
a. jstack: jstack is a part of the JDK installation and is available in JDK_HOME/bin directory. In order to generate thread-dump from a running BW process using jstack, all you need is the PID of the BW process. Then run the following command to generate the thread-dump:
jstack –l <pid>
PS: As the thread-dump will be generated in the stdout/stderr of the jtsack/kill command, you may need to re-direct the output to a file.
b. kill: To create a thread dump, the BW engine should be started from command line.
- Go to the deployed engine directory (tibco/tra/domain/<domain_name>/application/<bw_instance>
- Run the .sh file as follows from the command prompt:
$<instance_name>.sh > debug.out 2>&1
Here we are redirecting the console output to debug.out
- Make note of the engine PID.
- To capture the thread dump, use kill -3 <engine pid>.
- The thread dump should be written to the file debug.out.
c. Tools like jVisualVM/jConsole: BW process can be attached to tools like jVisualVM or jConsole and the thread-dump can be collected from the corresponding tool.