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 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.

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