Search code examples
javajmx

Difference between MXBean, JMX and OSBean


I am new to this field of calculating CPU and memory usage using JMX and MXBeans. I just wanted to know what exactly JMX is and what is the difference between MXBeans and JMX? Is there anything called OSBeans also?


Solution

  • JMX is the acronym for Java Management Extensions. It's the technology provided by Java that supplies tools for managing and monitoring applications, system objects and others like devices, etc...

    Before asking for a MXBean, you should know about MBeans. An MBean is basically a managed Java object, accessible through JMX.

    An MXBean is a type of MBean that references only a predefined set of data types.

    You can find more information in the Java MBean Tutorial.

    According to OSBeans, as far as I know there's nothing about it in java. Maybe you mean OperatingSystemMXBean (OperatingSystemMXBean) which is a platform-specific management interface for the operating system on which the Java virtual machine is running.