Monitoring Hung Threads & Implementing Application Timeouts
DavidLaraman 270004BMB2 Visits (646)
Monitor Hung Threads in WebSphere.
1.) Use Performance Monitoring Infrastructure (PMI) for request metrics and counters to actively monitor Thread Pool statistics.
Threadpool Counter definitions
Table 1. Counter definitions. The following table describes thread pool counters.
Use Tivoli Performance Viewer (TPV) to view these Thread Pool stats.
Viewing PMI data with Tivoli Performance Viewer
2.) Customize the Hung Thread Detection Policy:
Which defaults to threads running > = 10 minutes duration, before writing out WSVR0605W warning messages to SystemOut*.log (WSVR0606W are the associated completion messages).
Specify a Smaller Time interval < 10 minutes, if you want early warning signs or preemptive monitoring from the SystemOut*.log files themselves.
Configuring the hang detection policy
3.) Generate a Javacore:
Specifically look for "THREADS subcomponent dump routine" and "Thread Details" in the Javacore*.txt dumps.
Using Integrated Solutions Console (Admin GUI) on WebSphere Traditional Full Profile, javadump on WebSphere Liberty Profile, com.
a.) from the Administrative Integrated Solutions Console:
Navigate to Troubleshooting > Java dumps and cores
b.) using javadump (server javadump <server_name>)
c) using Hung Thread Detection com.
c.) using Unix (kill -3 PID) command
d.) using Windows CTRL+BREAK
e.) using WSAdmin command line interface:
Launch wsadmin from the bin directory of the application server profile (such as <WAS
Run the following commands:
set jvm [$AdminControl completeObjectName type
$AdminControl invoke $jvm dumpThreads
jvm = Admi
Available TimeOuts in WebSphere:
Based upon your Environment Needs, Application Types and Configuration Setup.
1.) There is a QueryTimeout that can be used in conjunction with SQL Statement executions and updates, set at the DataSource as a Custom Property or on the SQL Statement itself and also an older ReadTimeout specifically for Oracle.
WHILE STATEMENTS ARE RUNNING
Timeout properties summary
3.) There are Connection and Socket Timeouts that can be set for Web Services at the HTTP transport layer:
HTTP transport custom properties for web services applications