1.cd $tomcat/bin 

2.vi catalina.sh

3.在# ----- Execute The Requested Command -----------------------------------------”上添加

CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=服务器ip -Dcom.sun.management.jmxremote.port=7879[端口号] -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"

4.重启tomcat 同时tail -f日志

5.发现报错

【监控】jconsole监控tomcat的配置方法及报错处理方法

6.vi /etc/sysconfig/nework

7.追加HOSTNAME=主机名,有就不用了

8.vi /etc/hosts

9.追加

127.0.0.1  localhost.localdomain localhost 主机名

::1   localhost.localdomain localhost 主机名

【监控】jconsole监控tomcat的配置方法及报错处理方法

10.在win上打开jdk目录下的jconsole.exe并填上待监控的服务器ip:端口号,用户名及密码

【监控】jconsole监控tomcat的配置方法及报错处理方法

11.到此处即可监控tomcat

【监控】jconsole监控tomcat的配置方法及报错处理方法

相关文章:

  • 2021-05-07
  • 2021-05-19
  • 2021-04-06
  • 2022-01-13
  • 2021-09-05
  • 2021-07-16
  • 2021-09-18
猜你喜欢
  • 2021-06-12
  • 2022-12-23
  • 2021-08-20
  • 2021-06-11
  • 2021-10-05
  • 2021-10-13
  • 2022-01-26
相关资源
相似解决方案