怎么监控 jdk -jvm 使用Jconsole监控远程JVM
如何监控 jdk -jvm 使用Jconsole监控远程JVM
jconsole 是jdk自带的工具
远程机器JVM参数为-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
然后在本机用Jconsole 连接 <IPAdress>:<port>
例如
java -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ClassName
jconsole 是jdk自带的工具
远程机器JVM参数为-Dcom.sun.management.jmxremote.port=<port> -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
然后在本机用Jconsole 连接 <IPAdress>:<port>
例如
java -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ClassName