If JMX is enabled, Java VisualVM can be used to take thread dumps of local and remote TIBCO ActiveMatrix BusinessWorks™ 5 (BW) engine processes. But JMX is usually not enabled in Production environments. This article lists a few other options for various Operating Systems.
Red Hat Linux, Solaris, Windows
If JDK is installed on the machine where BW application is running, ‘jstack’ utility may be used to generate thread dump on Red Hat Linux, Solaris or Windows.
Steps:
1. Go to JDK_HOME/bin (JDK_HOME is the directory where JDK is installed)
2. Run the following command
jstack -l pid_of_bwengine > threaddump.txt
Red Hat Linux, Solaris, HP-Ux
If the BW application is running on Red Hat Linux, Solaris or HP-Ux, ‘kill’ command may be used to generate thread dump.
Steps:
1. Go to TIBCO_HOME/tra/domain/<domain_name>/application/<application_name>
2. Run the following command from the command line. This is to start the application redirecting standard output to file.
<application_name>.sh > bwapplication.out 2>&1
3. Run the following command to generate thread dump
kill -3 pid_of_bwengine
The thread dump will be written to the file bwapplication.out
Windows
On WIndows, a thread dump can be generated by pressing Ctrl+Break.
Steps:
1. Go to TIBCO_HOME/tra/domain/<domain_name>/application/<application_name>
2. Run the following command from the command prompt. This is to start the application redirecting standard output to file.
<application_name>.cmd > bwapplication.out 2>&1
3. Press Ctrl+Break to generate thread dump
The thread dump will be written to the file bwapplication.out
AIX
On AIX, run the following command to generate thread dump. The thread dump (along with some additional information) will be written to a file named javacore*.txt under TIBCO_HOME/bw/5.x/bin.
kill -3 pid_of_bwengine
Solaris
On Solaris platform, a thread dump can be generated using the ‘kill’ command or by pressing Ctrl+\.
Steps:
1. Go to TIBCO_HOME/tra/domain/<domain_name>/application/<application_name>
2. Run the following command from the command line. This is to start the application redirecting standard output to file.
<application_name>.sh > bwapplication.out 2>&1
3. Run the following command or press Ctrl+\ to generate thread dump
kill -QUIT pid_of_bwengine
The thread dump will be written to the file bwapplication.out
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now