fix jvm Xss

This commit is contained in:
bwcx_jzy 2024-04-03 15:48:07 +08:00
parent df6deb4123
commit 101ea7c86d
No known key found for this signature in database
GPG Key ID: E187D6E9DDDE8C53
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ fi
JavaVersion=$($JAVA -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' | awk -F '.' '{print $1}') JavaVersion=$($JAVA -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' | awk -F '.' '{print $1}')
Java64Str=$($JAVA -version 2>&1 | grep -E '64-bit|64-Bit') Java64Str=$($JAVA -version 2>&1 | grep -E '64-bit|64-Bit')
JAVA_OPTS="$JAVA_OPTS -Xss256k -XX:-UseBiasedLocking -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LogPath" JAVA_OPTS="$JAVA_OPTS -Xss512k -XX:-UseBiasedLocking -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LogPath"
if [ "${JavaVersion}" -ge 11 ]; then if [ "${JavaVersion}" -ge 11 ]; then
JAVA_OPTS="$JAVA_OPTS" JAVA_OPTS="$JAVA_OPTS"

View File

@ -79,7 +79,7 @@ fi
JavaVersion=$($JAVA -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' | awk -F '.' '{print $1}') JavaVersion=$($JAVA -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' | awk -F '.' '{print $1}')
Java64Str=$($JAVA -version 2>&1 | grep -E '64-bit|64-Bit') Java64Str=$($JAVA -version 2>&1 | grep -E '64-bit|64-Bit')
JAVA_OPTS="$JAVA_OPTS -Xss256k -XX:-UseBiasedLocking -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LogPath" JAVA_OPTS="$JAVA_OPTS -Xss1024k -XX:-UseBiasedLocking -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LogPath"
if [ "${JavaVersion}" -ge 11 ]; then if [ "${JavaVersion}" -ge 11 ]; then
JAVA_OPTS="$JAVA_OPTS" JAVA_OPTS="$JAVA_OPTS"