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接口

     连接界面如下:

     使用jmx监控tomcat

  连接进去以后,在MBean一栏便是jmx接口。

     使用jmx监控tomcat

     关于jmx相关接口信息如下(主要包括java jmx接口和tomcat jmx接口两个部分)

  使用jmx监控tomcat

相关文章:

  • 2021-11-02
  • 2022-01-12
  • 2021-08-03
  • 2022-01-10
  • 2021-12-17
  • 2022-12-23
  • 2023-03-27
猜你喜欢
  • 2021-08-29
  • 2022-03-01
  • 2021-12-10
  • 2021-12-21
  • 2022-03-06
相关资源
相似解决方案