通过JDK Mission Control连接tomcat

1、需要在服务器上安装Alibaba_Dragonwell_8.2.2-GA_Linux_x64.tar.gz

    参考网站:https://www.infoq.cn/article/McfDp6lggF0fk_7xvsiQ

                      https://www.sohu.com/a/306651904_465959

2、生成jfr日志

https://ywnz.com/linuxjc/4608.html

3、在jmc添加jvm浏览器

JAVA_OPTS="$JAVA_OPTS -XX:+EnableJFR -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=7001 -Dcom.sun.management.jmxremote.rmi.port=7001 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=you ip"

 

你可能感兴趣的:(java,jvm)