1. Add this to your java startup script on remote-host:
-Dcom.sun.management.jmxremote.port=9303
-Dcom.sun.management.jmxremote.rmi.port=9303
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=false
-Djava.rmi.server.hostname=localhost
This could be done in multiple ways, this example uses Server Start arguments
2. Execute this on your computer in CMD or Terminal.
Windows users:
putty.exe -ssh user@remote-host -L 9303:remote-host:9303
Linux and Mac Users:
ssh user@remote-host -L 9303:remote-host:9303
3. Start jconsole
on your computer using Command as below or from Apps menu
jconsole localhost:9303