visualvm 远程监控 tomcat
远程监控1> 在catalina.sh 中加上
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.81.135"
2> 修改/etc/hosts
将127.0.0.1 改成 本机的ip地址 192.168.81.135
用hostname -i 检查
3> 在lib中添加jmx的jar包
catalina-jmx-remote.jar
但是只能用sampler 无法用profiler
页:
[1]