You can use New Relic's Java agent to collect and view additional metrics provided by the most common application servers via JMX. The collected metrics vary by app server and include measurements of thread pools, HTTP sessions, and transactions.
Application servers collect and report different metrics, which appear on APM's JVMs page. (For applications using New Relic via Heroku, the JVMs page is named Instances.)
At a minimum, each app server collects and reports metric data on memory. For instructions on enabling JMX metrics, refer to your app server's documentation.
To view JVM metrics:
- Go to one.newrelic.com > APM > (select an app) > Monitoring > JVMs > (select a JVM).
- From the selected JVM's Memory page, use any of New Relic's standard user interface functions to drill down into detailed information.
- To view other metrics, select any available tab.
- Optional: To use the thread profiler to look for bottlenecks in data on executing threads, select Profile this JVM.
one.newrelic.com > APM > (select an app) > Monitoring > JVMs: Depending on the metrics your app server is reporting, one or more tabs appear on your JVM page.
This table lists which tabs appear on the JVM page for app servers. If your app server does not report a particular type of metric data, the tab does not appear on your JVM page.
App server transactions
Here is a summary of the metrics available from the JVM page. If the app server does not support a particular metric, that tab does not appear on your JVM page.
App server transactions
For supported app servers, the agent collects JMX data source metrics. You can view these metrics at one.newrelic.com > APM > (select an app) > Monitoring > JVMs > Data sources. To see these metrics, ensure that your data source has been properly configured for JMX monitoring for your app server.
To enable New Relic to access Tomcat JMX metrics when running with Spring Boot 2.2 and higher, the system property
server.tomcat.mbeanregistry.enabled must be set to
true. See the Spring Boot 2.2 release notes.
To enable New Relic to access WebSphere PMI metrics, you will need to configure WebSphere to monitor the necessary statistic sets.
When enabled, New Relic collects the following WebSphere PMI metrics. If you want other PMI metrics besides these to be collected and displayed in New Relic custom dashboards, use JMX instrumentation.
In WebLogic, JMX is enabled by default. New Relic collects the following mbeans metrics.
To collect additional JMX metrics, use a custom YAML file.
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.