Created
November 12, 2014 00:03
-
-
Save jthmiranda/6486b213806a0be683c3 to your computer and use it in GitHub Desktop.
Setting new relic and passing java ops to use VisualVM
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
NR_JAR=/usr/share/tomcat/newrelic/newrelic.jar; export NR_JAR | |
JAVA_OPTS="$JAVA_OPTS -javaagent:$NR_JAR \ | |
-Dcom.sun.management.jmxremote=true \ | |
-Dcom.sun.management.jmxremote.port=9696 \ | |
-Dcom.sun.management.jmxremote.ssl=false \ | |
-Dcom.sun.management.jmxremote.authenticate=false \ | |
-Djava.rmi.server.hostname=[ip]"; export JAVA_OPTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment