Question: how does jmx monitoring work?
Answer: JMX Monitoring is done by querying data from Managed Beans (MBeans) that are exposed via a JVM port (JMX console). A MBean represents a resource running inside a JVM and provides data on the configuration and usage of that resource. MBeans are typically grouped into "domains" to denote where resources belong to.