From bf042f853b20161399848da3c9d1ffe2c46810dd Mon Sep 17 00:00:00 2001 From: liwu Date: Thu, 26 Nov 2020 12:11:35 +0800 Subject: [PATCH] =?UTF-8?q?@dev=20=E6=9B=B4=E6=96=B0jvm=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/run-app.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/run-app.sh b/common/run-app.sh index 3f9401e..9b286b6 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 " -- GitLab