JConsole remote connection

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.