jmx参数
-Dcom.sun.management.jmxremote.port=18089
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=10.241.0.239
输出GC日志
-Xlog:gc*:file=gateway-gc.log:uptime,tid,time::filesize=10M,filecount=10
输出堆信息
#jdk10命令变为如下命令:
jhsdb jmap --heap --pid <pid>