JVM优化参数列表

jdk1.6.0_26/bin/java -Xms2500m -Xmx2500m -XX:PermSize=128M -XX:MaxPermSize=256M -Xmn1g -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC -XX:CMSMaxAbortablePrecleanTime=5000 -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+DisableExplicitGC -XX:+PrintGCDateStamps -XX:+UseCompressedOops -verbose:gc -Xloggc:/home/admin/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError 

 

DisableExplicitGC   代码中 System.gc();

HeapDumpOnOutOfMemoryError   HeapDumpPath  OutOfMemoryError异常时dump

bootclasspath  类加载,可以替换rt.jar

UseCompressedOops 压缩指针,32,64位机器。

 

 

你可能感兴趣的:(jvm)