Server side JVM GC 参数

NN、Flume、Kafka等常用的Server side GC参数,可以提高GC效率,减少等待时间


BROKER_JVM_ARGS="-Dcom.sun.management.jmxremote -server -Xmx12g -Xmn4g -XX:SurvivorRatio=6 -XX:+UseMembar -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark 
-XX:ParallelCMSThreads=4 -XX:+UseCMSCompactAtFullCollection -verbose:gc -Xloggc:$BASE_DIR/logs/gc.log.`date +%Y-%m-%d-%H-%M-%S` -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+CMSClassUnloa
dingEnabled -XX:CMSInitiatingOccupancyFraction=75 -XX:CMSFullGCsBeforeCompaction=1 -Dsun.net.inetaddr.ttl=3 -Dsun.net.inetaddr.negative.ttl=1 -Dx.home=$x_home -cp $CLASSPATH"



export JAVA_OPTS="-server -Xmx8g -Xmn8g -XX:SurvivorRatio=6 -XX:+UseMembar -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+C
MSScavengeBeforeRemark -XX:ParallelCMSThreads=4 -XX:+UseCMSCompactAtFullCollection -verbose:gc -Xloggc:/data/xxx/flume/apache-flume-1.3.0-bin/logs/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancy
Fraction=75 -XX:CMSFullGCsBeforeCompaction=1"

你可能感兴趣的:(server)