##gclog基本參數html
-verbose:gc -verbose:sizes -Xloggc:/tmp/gclogs/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/
##heap設置java
-server -Xmx4g -Xms4g
##perm的設置 ###java8以前spa
-XX:PermSize=128m -XX:MaxPermSize=256m
###java8.net
-XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
##G1的gc參數code
-XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=200
##cms的gc參數server
-XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+ExplicitGCInvokesConcurrent -XX:+CMSScavengeBeforeRemark -XX:+CMSParallelRemarkEnabled
##ps的gc參數htm
-XX:+DisableExplicitGC -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseAdaptiveSizePolicy
##docblog