Verifying JVM Support for CPU Time and Thread Contention Monitoring

To achieve this, do the following:

  1. Login to the target application server.
  2. Open jconsole.
  3. Switch to the MBeans tab page in the jconsole.
  4. When Figure 92 appears, expand the java.lang node in the tree-structure of the left panel of Figure 92 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.

    Figure 92 : Verifying JVM support for CPU time and thread contention monitoring