Wednesday, April 7, 2010

Java - Remote JConsole Connection

To perform remote JConsole Conenection, do the following

1. Add the following to JAVA_OPTS (I copied from my tsdebug). It will create RMI port at 8004. It will not ask for authentication

-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"

2. Start JConsole and select remote process with the following connection URL

service:jmx:rmi:///jndi/rmi://hostName:portNum/jmxrmi

3. On successful connection, you will see your server IP at the top of the JConsole bar.

No comments:

Post a Comment

Hadoop - How to setup a Hadoop Cluster

Below is a step-by-step guide which I had used to setup a Hadoop Cluster Scenario 3 VMs involved: 1) NameNode, ResourceManager - Host...