Verifying JVM Support for CPU Time and Thread Contention Monitoring
To achieve this, do the following:
- Login to the target application server.
- Open jconsole.
- Switch to the MBeans tab page in the jconsole.
When Figure 1 appears, expand the java.lang node in the tree-structure of the left panel of Figure 1 and click the Attributes sub-node. If you browse the list of attributes that then appear in the right panel, you will find the ThreadContentionMonitoringSupported attribute. If this attribute is set to yes, it means that the JVM supports contention monitoring. Likewise, look for the ThreadCpuTimeSupported attribute in that list, and once found, check its status. If this attribute is set to yes, it means that the JVM supports
CPU time monitoring.