Wednesday, June 16, 2010

JConsole on a remote machine

If you want to monitor your app on a remote machine use this when you start it:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8888
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=putYourAppRemoteIPHere