JVM参数配置样例

JAVA_OPTS="$JAVA_OPTS -d64 -server -Xmn1024m -Xms4096m -Xmx4096m -XX:PermSize=256M  -XX:MaxPermSize=512M"
JAVA_OPTS="$JAVA_OPTS -Xloggc:file -XX:+HeapDumpOnOutOfMemoryError"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=80 -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark"

你可能感兴趣的:(java,jvm)