Skip to content

Instantly share code, notes, and snippets.

@wsakaren
Last active August 13, 2016 14:46
Show Gist options
  • Save wsakaren/5ad6f260864c9f9b9fefc756e41f8265 to your computer and use it in GitHub Desktop.
Save wsakaren/5ad6f260864c9f9b9fefc756e41f8265 to your computer and use it in GitHub Desktop.
Setting up New Relic in Tomcat
1.Download Java agent zip file from New Relic site
2. Under the tomcat base directory create a directory newrelic
3. Put the unzipped files in this directory
4. Update the license key in newrelic.yml with that shown in New Relic Admin
5. Update the App Name to something suitable
6. Update catalina.sh to have following:
NR_JAR=/usr/local/tomcat/newrelic/newrelic.jar; export NR_JAR
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$NR_JAR"; export CATALINA_OPTS
7. Restart Tomcat – should now appear as a new application in New Relic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment