jconsole

1、设置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、设置javaSDK 中的链接密码

位置:jre/lib/management
2.1
将jmxremote.password和jmxremote.access改成600权限,和所属该程序用户
chown jboss:jboss jmxremote.access  jmxremote.password
chmod 600 jmxremote.access  jmxremote.password

2.2
将/usr/java/jdk1.6.0_02/jre/lib/management下的jmxremote.password.template,拷贝一份叫jmxremote.password。进去将内容全部删去,添加一行
controlRole   R&D    (用户名,密码)

猜你喜欢

转载自wwwz.iteye.com/blog/2320552