No data appears (Java)


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


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. Use New Relic Diagnostics to try to automatically identify the issue.
  3. To verify the newrelic.jar file has been installed correctly and that the -javaagent flag has been passed correctly into the JVM:

    • Mac or *nix: With the web server running, go to the Mac or *nix terminal and input:

      ps -ef | grep java
    • Windows: With the web server running, go to the Windows Console and input:

      wmic process where "name='java.exe'" get ProcessID, Commandline /format:list
  4. Verify that your newrelic.jar and newrelic.yml files are in the same directory.
  5. Generate finest level logs, and check the logs for errors.
  6. Verify that your app is reporting to the expected name: In your New Relic log files, search for "reporting to", then select the link in the message. For example:

    {"message":"Reporting to:"}

    If you are reporting to multiple application names, look for multiple lines with this message.

  7. If the message 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

Recommendations for learning more: