This is a 3rd Party addon so you will need an Heroku account that has been verified before you can use it.
With the New Relic Heroku Add-on you can easily setup application performance monitoring and reporting. This chapter will teach you how to add New Relic to your application.
New Relic provides an in-depth view into the performance and memory usage of applications on Heroku.
Start by adding the New Relic Add-on:
Addfor the free "Standard" level of service
Now your application needs to be configured to use the New Relic Java agent:
newrelic.ymlfiles into the root directory of your project
Commit these new files to your Git repository and push the new version to Heroku:
You need to change the default
JAVA_OPTS environment variable for your application to the Java process to use the New Relic Java agent.
My Heroku Applicationsview select the application's context menu
-Xmx384m -Xss512k -XX:+UseCompressedOops -javaagent:newrelic.jar
Test the application on Heroku in your browser and verify that it works as expected.
You can now browse the New Relic Dashboard:
Explore the New Relic dashboard. (Note: It might take a few minutes for some data to appear in the dashboard.)