Jump to content

User:Elukey/Ops/Jconsole

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Remote connection to Prod

Scenario: you want to check JMX MBeans available or generic JVM data in Production from your laptop:

ssh -ND 8088 $some_hostname$
jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=8088

Then Jconsole will be opened and you'll need to select Remote Process, adding the following: $hostname$:port (don't use localhost, it will not work!)