Last active
July 20, 2016 16:51
-
-
Save vbhavsar/818df9042723d5111a0ee1bedeaf2a1e to your computer and use it in GitHub Desktop.
Instructions for profiling a jvm process running on a remote host behind a firewall/NAT/bastion host.
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
Prerequisites: | |
- X manager on the local machine. Something like XQuartz works for Mac. | |
To profile a java process running on a host behind a firewall/NAT/bastion host, follow these instructions: | |
host1 = localhost | |
host2 = NAT | |
host3 = ec2 | |
In a terminal: | |
ssh -A -L 4200:host3:22 ec2-user@host2 | |
In a new terminal: | |
ssh -X -p 4200 ec2-user@host1 | |
In that session, download and unzip visualvm zip file from http://visualvm.java.net/download.html | |
cd to /bin directory of the unzipped visualvm directory structure. | |
./visualvm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment