Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit


This option relates to the information about the CPU usage of thread categories that is available with the application programming interface.

Restriction: This option might not be supported in subsequent releases.


Setting Effect Default
-XX:+EnableCPUMonitor Enable yes
-XX:-EnableCPUMonitor Disable


The -XX:+EnableCPUMonitor option enables CPU monitoring, which allows a JMX bean to track CPU usage on a per thread basis and attributes the usage against different categories. For more information, see the JvmCpuMonitorMXBean interface in the API documentation.

To turn off CPU monitoring, set the -XX:-EnableCPUMonitor option on the command line.

See also