mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
fix jvm Xss
This commit is contained in:
parent
df6deb4123
commit
101ea7c86d
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user