tomcat服务配置
1、打开tomcat服务文件
vi tomcat/bin/catalina.sh
2、添加以下内容:
# ----- Execute The Requested Command -----------------------------------------
JAVA_OPTS="-Dcom.sun.management.jmxremote.port=26400
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false"
放在
- set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 这个的最后。
3、运程机器打开jconsole.exe,选择远程连接ip:26400
4、完成,可以监控了。