[Java] JMX metrics is enabled but no data is received for http sessions and data sources

Followed the instructions for setting up JVM Metrics (JVMs page (Java): View app server metrics from JMX | New Relic Documentation). Our spring boot application is served via embedded Tomcat web server. The JVM metrics for Memory and Threads are shown. But the Http sessions tab show always an empty chart. The data sources tab shows " There are currently no metrics to display here for your Application Server". Why there is no http sessions metrics data collected from Tomcat server?

spring boot version: 2.2.5

Hey there!

Thanks for reaching out to New Relic Support! After reading through your issue I think I might be able to shed some light on the situation. Our agent isn’t able to collect http session metrics data from JMX right out of the box, however, you might be able to use our custom instrumentation with JMX to specifically grab this data. You may be able to leverage tools like jconsole as well. I’ve included some more docs below that I think will help.


I hope this helps! In the meantime, please don’t hesitate to reach out with any other questions or comments.