diff --git a/amoro-ams/dist/src/main/arctic-bin/bin/ams.sh b/amoro-ams/dist/src/main/arctic-bin/bin/ams.sh index 6ca20200de..a6678972a7 100644 --- a/amoro-ams/dist/src/main/arctic-bin/bin/ams.sh +++ b/amoro-ams/dist/src/main/arctic-bin/bin/ams.sh @@ -24,7 +24,8 @@ source ${CURRENT_DIR}/load-config.sh -JAVA_OPTS="-server -Xloggc:$AMORO_LOG_DIR/gc.log -XX:+PrintGCDateStamps -XX:+IgnoreUnrecognizedVMOptions -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M \ +JAVA_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=200 \ +-Xloggc:$AMORO_LOG_DIR/gc.log -XX:+PrintGCDateStamps -XX:+IgnoreUnrecognizedVMOptions -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M \ -Xms${JVM_XMS_CONFIG}m -Xmx${JVM_XMX_CONFIG}m \ -verbose:gc -XX:+PrintGCDetails \ -Dcom.sun.management.jmxremote \