AIOps

AIOps

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#ITAutomation
#AIOps
#CloudPakforAIOps
#AIOps

 View Only

How Does the ITCAM for WebSphere Agent Detect WebSphere Hung Threads

By Kirk Bixler posted Wed August 01, 2018 09:24 PM

  

How are data for hung threads related attributes collected?

These attributes belong to the attribute group "Application Server":

Hung Threads Total: Total number of detected hung threads. The valid format is a positive integer.
Hung Threads Blocked: Number of hung threads detected in the BLOCKED state. The valid format is a positive integer.
Hung Threads Waiting: Number of hung threads detected in the WAITING state. The valid format is a positive integer.
Hung Threads Timed Waiting: Number of hung threads detected in the TIMED_WAITING state. The valid format is a positive integer.

These attributes are used in the WebSphere App Server workspace, Application Server Summary view.

There are no corresponding PMI counters for them, hence the question.

 

Answer

That data comes from the ThreadMXBean directly


http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/management/ThreadMXBean.html

The monitored threads are defined in itcamdc/etc/toolkit_config_kwj.xml

<threadsFilter>
<stackPattern>
<include>
<classMask>com.ibm.ws.util.ThreadPool$Worker</classMask>
<position>0</position>
<exclude>
<classMask>com.ibm.ws.util.ThreadPool</classMask>
<methodMask>getTask</methodMask>
<position>1</position>
</exclude>
</include>
<include>
<classMask>com.ibm.ws.util.ThreadPool$ZOSWorker</classMask>
<position>0</position>
</include>
<threadNameMasks>
<mask>OGORB</mask>
<mask>ORB.thread.pool</mask>
<mask>WebSphere:ORB.thread.pool</mask>
<mask>WebContainer</mask>
</threadNameMasks>
</stackPattern>
</threadsFilter>


The wsadmin command can be used to get the info out of the mbean.

0 comments
16 views

Permalink