Visualvm监控tomcat
1、在catalina.sh中添加JAVA_OPTS='-Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false'
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
os400=false
darwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
Darwin*) darwin=true;;
esac
2、VisualVM中新建Remotehost,然后在Remotehost下面Add JMX connnection,输入配置的端口就可以了
页:
[1]