export JAVA_OPTS="-server -D$SERVER_NAME $JAVA_OPTS"
export JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx512m"
export JAVA_OPTS="$JAVA_OPTS -XX:NewSize=256m -XX:MaxNewSize=256m"
# JAVA 6 7
export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=512m -XX:MaxPErmSize=512m"
# JAVA 8
export JAVA_OPTS="$JAVA_OPTS -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m"
# IPv6 Disable
export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv6Addresses=false"
# GC ParallelGC
export JAVA_OPTS="$JAVA_OPTS -XX:+UseParallelGC"
export JAVA_OPTS="$JAVA_OPTS -XX:+UseParallelOldGC"
export JAVA_OPTS="$JAVA_OPTS -XX:-UseAdaptiveSizePolicy"
export JAVA_OPTS="$JAVA_OPTS -XX:ParallelGCThreads=4"
# GC Log
export JAVA_OPTS="$JAVA_OPTS -verbose:gc"
export JAVA_OPTS="$JAVA_OPTS -Xloggc:$LOG_DIR/gc/g.log"
export JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDateStamps"
export JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
export JAVA_OPTS="$JAVA_OPTS -XX:+UseGCLogFileRotation"
export JAVA_OPTS="$JAVA_OPTS -XX:NumberOfGCLogFiles=10"
export JAVA_OPTS="$JAVA_OPTS -XX:GCLogFileSize=16m"
# ETC
export JAVA_OPTS="$JAVA_OPTS -Dsun.rmi.dgc.client.gcInterval=3600000 "
export JAVA_OPTS="$JAVA_OPTS -Dsun.rmi.dgc.server.gcInterval=3600000"
export JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
'일' 카테고리의 다른 글
worker MPM (0) | 2017.09.01 |
---|---|
workers.properties (0) | 2017.09.01 |
workers.properties 옵션 내용 (0) | 2017.05.08 |
JBOSS - Table of contents (0) | 2017.04.28 |
mod_jk (0) | 2017.04.26 |