Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laszlomiklosik/4224331 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/4224331 to your computer and use it in GitHub Desktop.
Enable remote profiling for Tomcat using VisualVM
# just add the below to setenv.sh
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9090 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=172.17.12.99"
# inspired by http://blog.markshead.com/1129/connecting-visual-vm-to-tomcat-7/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment