Created
January 27, 2014 10:39
-
-
Save mieky/8646454 to your computer and use it in GitHub Desktop.
jvisualvm over ssh
This file contains hidden or 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
on the remote (Ubuntu) machine: | |
/etc/default/tomcat7 | |
-> | |
JAVA_OPTS = "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1098" | |
sudo service tomcat7 restart | |
on the local machine: | |
ssh -v -D 10000 <remote-host> | |
jvisualvm -J-Xms1G -J-Xmx1G -cp:a target/classes | |
Preferences > Network | |
SOCKS proxy: localhost:10000 | |
No Proxy hosts: (empty) | |
Local > Add JMX connection > localhost:1098 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment