I've read Visual VM remotely over ssh but I think I've not fully understood because it was not working for me :-( Please can someone give some example?
ssh -D 9696 login@ip.of.external.machine
and visualvm.exe -J-Dnetbeans.system_socks_proxy=localhost:9696 -J-Djava.net.useSystemProxies=true
starts visualvm, but no processes of external machine are shown (only the local ones like visualvm itself). Moreover sometimes (but not always) I got the message "channel 3: open failed: connect failed: Connection refused" in my ssh window.
Any help?
I had the issue of jstatd binding on localhost, so i had to type
also for jvisualvm i use this parameters instead
this way, connecting by the ssh proxy, i could use the real ip address of my remote machine.
Stealing from this answer i made myself a full reminder on my site .. i hope you don't mind ankon Thanks for this by the way :)
I was having the same issue while connecting jVisualVM to a remote application over ssh.
This Tutorial helped me solve my issue. http://issamben.com/how-to-monitor-remote-jvm-over-ssh/
To solve this issue make sure :
you set two port in the jvm configuration
ssh tunnel is properly established