在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

 

相关文章:

  • 2021-05-14
  • 2021-06-02
  • 2021-04-23
猜你喜欢
  • 2021-09-27
  • 2021-09-09
  • 2021-05-07
  • 2021-10-18
相关资源
相似解决方案