No data appears (Java)

Problem

After waiting a few minutes for data to appear in the New Relic UI, your Java app isn't reporting data.

For Heroku, see No data appears with Heroku.

Solution

After sending a request to your web application, data should appear in the New Relic APM UI within two to three minutes. If no data appears after a few minutes:

  1. Restart your web server.
  2. Verify the jar is installed correctly:
    • Mac or *nix: With the web server running, go to the Mac or *nix terminal and input ps -ef | grep java. Then verify the newrelic.jar file is listed. If not, the -javaagent flag was not passed into the JVM correctly.
    • Windows: With the web server running, go to the Windows Console and input wmic process where "name='java.exe'" get ProcessID, Commandline /format:list. Then verify the newrelic.jar file is listed. If not, the -javaagent flag was not passed into the JVM correctly.
  3. Verify that your newrelic.jar and newrelic.yml files are in the same directory.
  4. Generate finest level logs, and check those logs for errors.
  5. Verify that your app is reporting to the expected name: In your New Relic log files, search for "reporting to".

The "reporting to" search will find a line that links to the target application. (If you are reporting to multiple application names, this line will appear more than once). For example:

{"message":"Reporting to: https://rpm.newrelic.com/accounts/000/applications/000000"

If the link does not go to the expected application, ensure that your app name settings are the same in both newrelic.yml and in the web.xml display-name setting.

For more help

Additional documentation resources include the Java agent's Troubleshooting section.

Join the discussion about Java monitoring in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.