jmx 配置

1、启动添加jmx参数

  

-Dcom.sun.management.jmxremote.port=8999 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=true 
-Djava.rmi.server.hostname=192.168.1.119 
-Dcom.sun.management.jmxremote.access.file=/data/config/jmx/jmxremote.access 
-Dcom.sun.management.jmxremote.password.file=/data/config/jmx/jmxremote.password
View Code

2、jmxremote.access jmxremote.password 位于 $JAVA_HOME/jre/lib/management

3、修改jmxremote.access jmxremote.password为只读写权限

   chmod 600 jmxremote.password jmxremote.access

4、jmxremote.password 可添加自定义的用户跟密码

  需要在jmxreomte.access中指定用户的权限。

 

posted on 2015-10-20 09:39  jian_xie  阅读(885)  评论(0编辑  收藏  举报