1、修改tomcat_home/bin/catalina.sh 文件,搜索 Execute The Requested Command 字样,在其上,添加 :

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


服务器IP就是你要监听的Ip,端口随便取一个,如:8081,但是不要跟tomcat的端口一样
Tomcat添加Jconsole监控

原文详情链接:
https://www.cnblogs.com/owenma/p/6894639.html

相关文章:

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