Network Deployment (Distributed operating systems), v8.0 > Troubleshoot and support


Configure the hang detection policy


Overview

The hang detection option for WAS is turned on by default. We can configure a hang detection policy to accommodate the applications and environment so that potential hangs can be reported, providing earlier detection of failing servers. When a hung thread is detected, WAS notifies you so that you can troubleshoot the problem.

A hung thread can result from...

System resources, such as CPU time, might be consumed by this hung transaction when threads run unbounded code paths, such as when the code is running in an infinite loop. Alternately, a system can become unresponsive even though all resources are idle, as in a deadlock scenario. Unless an end user or a monitoring tool reports the problem, the system may remain in this degraded state indefinitely.

Use the hang detection policy, you can specify a time that is too long for a unit of work to complete. The thread monitor checks all managed threads in the system...

Unmanaged threads, which are threads created by applications, are not monitored.

The thread hang detection option is enabled by default. To adjust the hang detection policy values, or to disable hang detection completely:


Configure policy

From the admin console, click...

...and add the following properties...

Name Value Default
com.ibm.websphere.threadmonitor.interval Frequency, in seconds, at which managed threads in the selected application server will be interrogated. 180 seconds
(three minutes)
com.ibm.websphere.threadmonitor.threshold Length of time, in seconds, in which a thread can be active before it is considered hung. Any thread that is detected as active for longer than this length of time is reported as hung. 600 seconds
(ten minutes)
com.ibm.websphere.threadmonitor.false.alarm.threshold Number of times (T) that false alarms can occur before automatically increasing the threshold. It is possible that a thread that is reported as hung eventually completes its work, resulting in a false alarm. A large number of these events indicates that the threshhold value is too small. The hang detection facility can automatically respond to this situation: For every T false alarms, the threshold T is increased by a factor of 1.5. Set the value to zero (or less) to disable the automatic adjustment. 100
com.ibm.websphere.threadmonitor.dump.java Set to true to cause a javacore to be created when a hung thread is detected and a WSVR0605W message is printed. The threads section of the javacore can be analyzed to determine what the reported thread and other related threads are doing. false
com.ibm.websphere.threadmonitor.dump.stack Set to true to cause a stack trace to be printed when a hung thread is detected and a WSVR0605W message is printed. true

To disable the hang detection option, set the com.ibm.websphere.threadmonitor.interval property to less than or equal to zero.

Save changes, synchronize, and restart servers.


Related

Hung threads in Java Platform, Enterprise Edition applications
Example: Adjusting the thread monitor to affect server hang detection

+

Search Tips   |   Advanced Search