I am new to Java and I\'m facing a problem in connecting a Remote Host to the JVisualVM
.
I\'ve searched the Internet and followed all the steps mentioned th
I encountered similar problems when connecting to Glassfish application server. See solutions that worked for me as they can be same for You:
-Djava.rmi.server.hostname=*Remote_Server_External_IP_Address*
If Firewall block is an issue then I recommend trying XMing with SSH tunnel (which is simple to set). Here is instruction, if You encounter problems setting it:
Remote use of VisualVM with Xming (my blog)
Biggest advantage of using XMing is that it will work almost always when SSH is enabled. You just have to place VisualVM files on the remote host and run it from command line. XWindow will show VisualVM Window on Your local computer.
There is a chance that it is VisualVM issue - try using some other tool just to verify what is wrong. I recommend JConsole. It works similar to VisualVM and I also described details on my blog