1、在tomcat啟動過程中,開啟相應的參數配置:
-Dcom.sun.management.jmxremote-Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
其中: com.sun.management.jmxremote.port 是jmx端口 這個很重要 在使用jconsole連接tomcat jmx時候使用。
2、啟動tomcat并使用jconsole來連接tomcat jmx接口
連接界面如下:
連接進去以后,在MBean一欄便是jmx接口。
關于jmx相關接口信息如下(主要包括java jmx接口和tomcat jmx接口兩個部分)
新聞熱點
疑難解答