Skip to content

Instantly share code, notes, and snippets.

@jthmiranda
Created November 12, 2014 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthmiranda/6486b213806a0be683c3 to your computer and use it in GitHub Desktop.
Save jthmiranda/6486b213806a0be683c3 to your computer and use it in GitHub Desktop.
Setting new relic and passing java ops to use VisualVM
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