Java Management Extension (JMX) provides a powerful mechanism to monitor and manage Java applications. It can be enabled in Tomcat to monitor threads, CPU usage, and heap memory, and to configure MBeans. Spring provides JMX support out of the box, and we can use it to easily integrate our Spring application into JMX architecture.
JMX support provides the following core features:
- Easy and flexible support for controlling the management interface of beans
- Declarative support for exposing MBeans over remote connectors
- Automatic registration of Spring beans as JMX MBean
- Simplified support to proxy both local and remote MBean resources
JMX functionality has three levels:
- Instrumentation level: This level contains the components and resources that are represented by one or more Java beans, which are known as managed beans, or MBean.
- Agent level...