jconsloe、jmx连接jvm,jconsloejmxjvm
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生效。
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。