From 5dc33b12ea240fb4b8d9db7f0bde485312643af9 Mon Sep 17 00:00:00 2001 From: lizw Date: Fri, 1 Apr 2022 09:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=8D=97=E4=B8=80=E5=BF=83=E5=A0=82?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=20deploy-wms8.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-yn/deploy-wms8.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yxt-yn/deploy-wms8.sh b/yxt-yn/deploy-wms8.sh index 972e90d..d425a80 100644 --- a/yxt-yn/deploy-wms8.sh +++ b/yxt-yn/deploy-wms8.sh @@ -154,7 +154,7 @@ cmd=$1 profiles=${2:-"pre-yn"} #------------------------------------------------------------------- -JAVA_MEM_OPTS=" -DappName=${serverName} -server -Xmx2g -Xms2g" +JAVA_MEM_OPTS=" -DappName=${serverName} -server -Xmx16g -Xms16g" DATABASE_OPTS=" -Ddatabase.codeset=ISO-8859-1 -Ddatabase.logging=false" JAVA_OPTS_EXT=" -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dapplication.codeset=UTF-8 -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai" #------------------------------------------------------------------- @@ -164,8 +164,8 @@ startServer() { if [ -z $pid ];then echo -e "$echoPrefix cd $dirPath $echoSuffix" cd $dirPath - echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles >$logPath 2>&1 & $echoSuffix" - java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles >$logPath 2>&1 & + echo -e "$echoPrefix java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8095 >$logPath 2>&1 & $echoSuffix" + java $JAVA_MEM_OPTS $DATABASE_OPTS $JAVA_OPTS_EXT -jar ./servo-0.0.0-SNAPSHOT.jar --spring.profiles.active=global,$profiles --server.port=8095 >$logPath 2>&1 & echo "$serverName 启动成功!" else echo "$serverName 正在运行..."