1、JMX方式
https://docs.oracle.com/javase/8/docs/technotes/guides/visualvm/jmx_connections.html
https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstatd.html
http://www.herongyang.com/Java-Tools/jstat-jstatd-JVM-Remote-Monitoring-Server.html
配合参考: