用JvisualVM监视远程tomcat

 

在tomcat的catcalina.sh 中java_opts 环境变量中添加以下参数:

-Dcom.sun.management.jmxremote

-Dcom.sun.management.jmxremote.port=[monitor_port]

-Dcom.sun.management.jmxremote.authenticate=false

-Dcom.sun.management.jmxremote.ssl=false

 

然后打开JvisualVM 连接远程[IP]:[monitor_port]就成了

 

references:

http://blog.csdn.net/arjick/article/details/6268376

http://blog.csdn.net/arkblue/article/details/6229637

http://stackoverflow.com/questions/13986762/jmx-service-url-cannot-connect-remote-jvm

http://stackoverflow.com/questions/14715970/jvm-remote-profiling-with-jvisualvm

 

posted @ 2016-07-21 11:10  foo__hack  阅读(151)  评论(0编辑  收藏  举报