diff --git a/common/run-app.sh b/common/run-app.sh index 3f9401e4b01f95f029170cc94644320bcf0c8eca..9b286b699ea077b55a34d335118985a3bc181e9f 100755 --- a/common/run-app.sh +++ b/common/run-app.sh @@ -6,9 +6,8 @@ if [[ "$SPRING_PROFILE" =~ "online" || "$SPRING_PROFILE" =~ "pre" ]]; then MEM_OPTS="-Xms3584m -Xmx3584m" fi -JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc -Xloggc:gc.log \ - -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError \ - -XX:+PrintGCApplicationConcurrentTime -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M \ +JAVA_OPTS="-server $MEM_OPTS -Dspring.profiles.active=$SPRING_PROFILE -XX:+UseG1GC -verbose.gc \ + -Xlog:gc*=info:file=/app/gc.log::filecount=50,filesize=100M -XX:+HeapDumpOnOutOfMemoryError \ -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.rmi.port=1099 \ -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false \ -DSW_AGENT_NAME=$SERVICE_NAME "