jconsole

1. Set tomcat start.sh
JAVA_OPTS="-Xmx1024M -Xms512M -Xss3M -Dcom.sun.management.jmxremote.port=9999 -Dcom.s
un.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote. authenticate=true"
export JAVA_OPTS
2. Set the link password in javaSDK

Location : jre/lib/management
2.1
Change jmxremote.password and jmxremote.access to 600 permissions, and
chown jboss:jboss jmxremote.access jmxremote.password with the user of the program
chmod 600 jmxremote.access jmxremote.password

2.2
Copy the jmxremote.password.template under /usr/java/jdk1.6.0_02/jre/lib/management and call it jmxremote.password. Go in and delete all the content, add a line
of controlRole R&D (username, password)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326571824&siteId=291194637