![]() Previous |
![]() Next |
You can monitor live thread activity on the Live Threads table (Figure: Live Threads Table). This table shows all live threads in use by an application. Along with the thread name, other information about live threads is presented on the table, such as thread state and whether or not the thread is suspended. You can add columns to this table to show information such as the lock name, the lock owner names and IDs, the wait count and time, and so on. You can also use the Live Threads table to display stack traces for each live thread.
By default, when the Management Console opens, the table shows the following information (or "elements"):
Thread Name: The user-supplied name of the thread and name-related information.
Thread State: Identifies the thread's state; for example, NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, and TERMINATED. For more information on thread states, please refer to the Javadoc for java.lang.Thread.State.
Blocked Count: Which is the total number of times that the thread has blocked to enter or reenter a monitor.
Total CPU Usage: The amount of total CPU space required by the thread.
Deadlocked: Identifies whether or not the thread is deadlocked. This value will be either Yes, the tread is deadlocked, No, the thread is not deadlocked, or Not Enabled, deadlock data is not available. You must turn on deadlock detection for deadlock data to be available.
Allocated Bytes: The number of bytes allocated to the thread.
You can display up to 15 elements for each thread. Please refer to Live Threads Table Data Elements for more information.
You can also toggle on or off certain thread statistic. See Showing Live Thread Statistics for more information.