使用visualvm监控tomcat

使用Visualvm监控远程tomcat,在catalina.sh(bat)文件中的@echro off 下面新增一行。内容如下,其中10.200.106.205改成tomcat所在的服务器Ip。8849表示jmx的端口。

set JAVA_OPTS= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8849 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=10.200.106.205

然后在visualvm的远程中新增服务器,然后你懂得,监控tomcat,内存,cup,gc,

猜你喜欢

转载自itwangxinli.iteye.com/blog/1204354