The thread pool fits into the tree of objects as shown in Thread Pool Tree Hierarchy.
The statistics available for thread pools are shown in the following sections:
Use the following dotted name pattern for thread pool statistics:
server.thread-pool.thread-pool.statistic
The statistics available for the thread pool are shown in the following table.
Table 8–33 Thread Pool Monitoring Statistics| Statistic | Data Type | Description | 
|---|---|---|
| averagetimeinqueue | BoundedRangeStatistic | Average amount of time (in milliseconds) a request waited in the queue before being processed | 
| averageworkcompletiontime | BoundedRangeStatistic | Average amount of time (in milliseconds) taken to complete an assignment | 
| currentbusythreads | CountStatistic | Number of busy threads | 
| currentnumberofthreads | BoundedRangeStatistic | Current number of request processing threads | 
| numberofavailablethreads | CountStatistic | Number of available threads | 
| numberofworkitemsinqueue | BoundedRangeStatistic | Current number of work items waiting in queue | 
| totalworkitemsadded | CountStatistic | Total number of work items added to the work queue as of last sampling | 
The statistics available for ThreadInfo in the JVM in Java SE are shown in the following table.
Table 8–34 JVM Monitoring Statistics for Java SE - Thread Info| Statistic | Data Type | Description | 
|---|---|---|
| blockedcount | CountStatistic | Total number of times that the thread entered the BLOCKED state. | 
| blockedtime | CountStatistic | Time elapsed (in milliseconds) since the thread entered the BLOCKED state. Returns -1 if thread contention monitoring is disabled. | 
| lockname | StringStatistic | String representation of the monitor lock that the thread is blocked to enter or waiting to be notified through the Object.wait method. | 
| lockownerid | CountStatistic | ID of the thread that holds the monitor lock of an object on which this thread is blocking. | 
| lockownername | StringStatistic | Name of the thread that holds the monitor lock of the object this thread is blocking on. | 
| stacktrace | StringStatistic | Stack trace associated with this thread. | 
| threadid | CountStatistic | ID of the thread. | 
| threadname | StringStatistic | Name of the thread. | 
| threadstate | StringStatistic | State of the thread. | 
| waitedtime | CountStatistic | Elapsed time (in milliseconds) that the thread has been in a WAITING state. Returns -1 if thread contention monitoring is disabled. | 
| waitedcount | CountStatistic | Total number of times the thread was in WAITING or TIMED_WAITING states. |