Skip to content

Commit 3fc1ec4

Browse files
authored
[Improvement][headless] Implement Generational ZGC (#2236)
1 parent c499250 commit 3fc1ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assembly/bin/supersonic-daemon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function runJavaService {
6161
fi
6262
export PATH=$JAVA_HOME/bin:$PATH
6363
command="-Dfile.encoding=UTF-8 -Duser.language=Zh -Duser.region=CN -Duser.timezone=GMT+08
64-
-Dapp_name=${local_app_name} -Xms1024m -Xmx2048m $main_class"
64+
-Dapp_name=${local_app_name} -Xms1024m -Xmx2048m -XX:+UseZGC -XX:+ZGenerational $main_class"
6565

6666
mkdir -p $javaRunDir/logs
6767
java -Dspring.profiles.active="$profile" $command >/dev/null 2>$javaRunDir/logs/error.log &

0 commit comments

Comments
 (0)