jboss_eap_general_configuration_script

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
jboss_eap_general_configuration_script [2020/02/27 14:07]
koov
jboss_eap_general_configuration_script [2020/06/12 16:42] (현재)
koov [jboss.env]
줄 117: 줄 117:
 ################################################## ##################################################
 # Java Version Check # Java Version Check
-JAVA_VER=$(java -version 2>&1 | grep -version | sed 's/.*version ".*\.\(.*\)\..*"/\1/; 1q')+JAVA_VER=`java -version 2>&1 | sed 's/.*\?"\(.*\)".*/\1/; 1q'` 
 +JAVA_VER_MAJOR=`java -version 2>&| sed 's/.*\?"\([0-9]*\)\..*".*/\1/; 1q'` 
 +JAVA_VER_MINOR=`java -version 2>&1 | sed 's/.*\?"[0-9]*\.\([0-9]*\)\..*/\1/; 1q'
 if [ -z "$JAVA_VER" ] if [ -z "$JAVA_VER" ]
 then then
줄 135: 줄 138:
 ### Garbage Collection Options ### Garbage Collection Options
 JAVA_OPTS="$JAVA_OPTS -verbose:gc" JAVA_OPTS="$JAVA_OPTS -verbose:gc"
-JAVA_OPTS="$JAVA_OPTS -Xloggc:$LOG_HOME/gc_$DATE.log" 
-JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails" 
-JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps" 
-JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime" 
 JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError" JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError"
 JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$LOG_HOME/" JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=$LOG_HOME/"
줄 172: 줄 171:
  
 ########################### ###########################
-Java Version setting +Setting for JVM Versions 
-if [ $JAVA_VER -ge 8 ]; then +if [ $JAVA_VER_MAJOR -ge 11 ]; then 
- JAVA_OPTS="$JAVA_OPTS -XX:+UseCompressedClassPointers" +        JAVA_OPTS="$JAVA_OPTS -Xlog:gc*:file=$LOG_HOME/gc-%p-%t.log:tags,uptime,time,level:filecount=10,filesize=50m" 
- JAVA_OPTS="$JAVA_OPTS -XX:CompressedClassSpaceSize=1024M" +else 
- JAVA_OPTS="$JAVA_OPTS -XX:MetaspaceSize=512M" +        JAVA_OPTS="$JAVA_OPTS -Xloggc:$LOG_HOME/gc_$DATE.log" 
- JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=512M" +        JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails" 
-elif [ $JAVA_VER -le 7 ]; then +        JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCTimeStamps" 
- JAVA_OPTS="$JAVA_OPTS -XX:PermSize=256M" +        JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCApplicationStoppedTime" 
- JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256M" + 
- JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"+        if [ $JAVA_VER_MINOR -ge 8 ]; then 
 +                JAVA_OPTS="$JAVA_OPTS -XX:+UseCompressedClassPointers" 
 +                JAVA_OPTS="$JAVA_OPTS -XX:CompressedClassSpaceSize=1024M" 
 +                JAVA_OPTS="$JAVA_OPTS -XX:MetaspaceSize=512M" 
 +                JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=512M" 
 +        elif [ $JAVA_VER_MINOR -le 7 ]; then 
 +                JAVA_OPTS="$JAVA_OPTS -XX:PermSize=256M" 
 +                JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256M" 
 +                JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom" 
 +        fi
 fi fi
  
  • jboss_eap_general_configuration_script.txt
  • 마지막으로 수정됨: 2020/06/12 16:42
  • 저자 koov