반응형

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"

반응형

' > JAVA' 카테고리의 다른 글

native2ascii  (0) 2019.11.27
Open JDK 설치 Java 설치  (0) 2019.11.27
힙덤프 수동 생성 Heap Dump  (0) 2019.11.27
힙덤프 생성 옵션 heap dump  (0) 2019.11.27
jar 파일 특정 클래스 찾기  (0) 2019.11.27

+ Recent posts