Last active
August 13, 2016 14:46
-
-
Save birchestx/5ad6f260864c9f9b9fefc756e41f8265 to your computer and use it in GitHub Desktop.
Setting up New Relic in Tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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