on 03 Jan 2023 02:41 AM
If I go to Tomcat process dashboard -> Appserver dashboard is empty
And all JMX metrics are empty
This issue happened when Tomcat is loaded by the Spring Boot framework. By default, the Spring Boot framework disabled the JMX MBean.
The JMX Mbean can be registered in Spring Boot by setting the below parameter to true:
server.tomcat.mbeanregistry.enabled
Refer to https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2.0-M4-Release-Notes#tomcats-mbean... , quoted below:
Tomcat’s MBean Registry
Tomcat’s MBean Registry is now disabled by default, saving approximately 2MB of heap. If you want to use Tomcat’s MBeans, for example so that they can be used to expose metrics via Micrometer, set the server.tomcat.mbeanregistry.enabled to true.