cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dominikus_randy
Dynatrace Guide
Dynatrace Guide

Why Tomcat Appserver Dashboard is empty or why Tomcat JMX Metric is empty?

If I go to Tomcat process dashboard -> Appserver dashboard is empty

dominikus_randy_3-1670222849946.png

And all JMX metrics are empty

dominikus_randy_2-1670222178874.png

Root Cause:

This issue happened when Tomcat is loaded by the Spring Boot framework. By default, the Spring Boot framework disabled the JMX MBean.

Solution:

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.
Version history
Last update:
‎03 Jan 2023 02:41 AM
Updated by:
Comments
ChadTurner
DynaMight Legend
DynaMight Legend

Thanks for sharing this easy fix @dominikus_randy