From 40b639fd678cae1a9d8110091f52a7f1a0f28cc5 Mon Sep 17 00:00:00 2001 From: godotg Date: Sat, 26 Nov 2022 18:01:58 +0800 Subject: [PATCH] perf[deploy]: adjust jvm start params --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 5b1d4be5..18baa2db 100644 --- a/deploy.sh +++ b/deploy.sh @@ -191,7 +191,7 @@ function start() { # -XX:+AlwaysPreTouch,并置零内存页面,可能令得启动时慢上一点,但后面访问时会更流畅,比如页面会连续分配 # 输出到文件 >> output.log 2>&1 & - nohup java -XX:+UseG1GC -XX:InitialHeapSize=4g -XX:MaxHeapSize=4g -XX:MaxMetaspaceSize=256m -XX:AutoBoxCacheMax=20000 -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Djdk.attach.allowAttachSelf=true -Dspring.profiles.active=pro -Dfile.encoding=UTF-8 -jar ${jarPath} >/dev/null 2>&1 & + nohup java -XX:InitialHeapSize=1g -XX:MaxHeapSize=1g -XX:MaxMetaspaceSize=256m -XX:AutoBoxCacheMax=20000 -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Djdk.attach.allowAttachSelf=true -Dspring.profiles.active=pro -Dfile.encoding=UTF-8 -jar ${jarPath} >/dev/null 2>&1 & # 如果没有info的log,则一直等待 waitInfoLog