java啓動的一些參數

-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.ssl=false  -Dcom.sun.management.jmxremote.authenticate=falseapi

 

關於GC的:
JAVA_OPTS="-server -Xms3000m -Xmx6000m -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/www/dump/api-oom.hprof -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:/www/dump/api-gc.log"spa

須要打開jconsole監控server

-Dcom.sun.management.jmxremote.port=8999 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=falsessl

相關文章
相關標籤/搜索