JConsole remote connection
JConsole is easy to use and can solve many problems. However, you need to set Java opt for remote connection.
Follow these steps:
1. Add the following content under java opt:
If you do not need to verify to add
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. port = 12345"
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. authenticate = false"
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. ssl = false"
If verification is not required, the service configuration is complete.
Password verification required
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. port = 12345"
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. authenticate = true"
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. ssl = false"
JAVA_OPTS = "$ JAVA_OPTS-Dcom. sun. management. jmxremote. pwd. file =/usr/java/jdk1.6.0 _ 02/jre/lib/management/jmxremote. password"
2. Copy the jmxremote. password. template under/usr/java/jdk1.6.0 _ 02/jre/lib/management to jmxremote. password. In, delete all content and add a row.
ControlRole R & D (user name, password)
3. Change jmxremote. password and jmxremote. access to the 600 permission and the user of the program.
Chown jboss: jboss jmxremote. access jmxremote. password
Chmod 600 jmxremote. access jmxremote. password
Then, add the user name in the JConsole and the password will work.
Note: If the JConsole cannot access the local program, add the following content to java opt:
-Dcom. sun. management. jmxremote
Reference: http://community.jboss.org/wiki/UseJDK5JConsole
This article permanently updates the link address: