How to count the total number of threads created by an agent
book
Article ID: KB0070880
calendar_today
Updated On:
TIBCO BusinessEvents Enterprise Edition
6.x
Show More
Show Less
Description
How to count total number of threads forked by a single or all BusinessEvents applications
Environment
Linux platforms
Resolution
There are a number of different commands you can use to return the total thread count of a single or all agents.
All BusinessEvents applications running on the machine
ps -elfT |grep be-engine|wc -l
ps command:
PID=<pid>
ps -elfT|grep $PID|wc -l
jcmd (thread dump):
PID=<pid>
$TIBCO_HOME/tibcojre64/11/bin/jcmd $PID Thread.print|grep "cpu="|wc -l
JConsole - Add CDD or TRA property "be.engine.jmx.connector.port=<portnumber>" - Start JConsole and set "Remote process: " to "<machineName>:<portnumber>" to connect and open Tab "Threads"
$TIBCO_HOME/tibcojre64/11/bin/jconsole
Issue/Introduction
Count total number of threads
Feedback
thumb_up
Yes
thumb_down
No