WAS traditional Hung Thread Detection Recipe
- Decide on your hung thread detection interval and threshold. In general, the interval is performant even at 1 second. In general, the threshold should be set to your maximum expected response time plus 20%.
- WAS Administrative Console } Servers } Server Types } Websphere
application servers }
$SERVER
} Server Infrastructure } Administration } Custom Properties - Click
New...
- Name =
com.ibm.websphere.threadmonitor.interval
- Value =
$SECONDS_INTERVAL
- Click
OK
- Name =
- Click
New...
- Name =
com.ibm.websphere.threadmonitor.threshold
- Value =
$SECONDS_THRESHOLD
- Click
OK
- Name =
- Save configuration
- Synchronize nodes
- Restart
- Monitor
SystemOut*log
forWSVR0605W
messages and review the stack to understand what the threads were doing at the time the threshold was exceeded. Ensure you review garbage collection and operating system statistics as well.
Notes:
- If many requests exceed the threshold at the same time, this can
introduce its own overhead in acquiring and printing the stack traces.
By default,
com.ibm.websphere.threadmonitor.false.alarm.threshold
is the threshold for an exponential backoff that occurs every 100 breaches, but if there is a concern about such a potential overhead, then reducecom.ibm.websphere.threadmonitor.false.alarm.threshold
.