jconsole、jmx监控Tomcat配置
在startup.sh中添加一下内容:
export CATALINA_OPTS="$CATALINA_OPTS
-Dcom.sun.management.jmxremote=true
-Djava.rmi.server.hostname=127.0.0.1
-Dcom.sun.management.jmxremote.port=8888
Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false" //为false为未加密
当为true时,需要设置用户名和密码
find / -name jmxremote.password 找到jre底下的jmxremote.access和jmxremote.password配置用户名和密码,
权限,重启Tomcat生效。