From 2ea1ca6807174061bd2f8d74aeef7259b06089bc Mon Sep 17 00:00:00 2001 From: vongosling Date: Wed, 24 Jul 2019 10:31:59 +0800 Subject: [PATCH] Replace PermSize with MetaspaceSize, details see http://openjdk.java.net/jeps/122 --- distribution/bin/tools.cmd | 2 +- distribution/bin/tools.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/bin/tools.cmd b/distribution/bin/tools.cmd index 0e25c39b..c61fbcf8 100644 --- a/distribution/bin/tools.cmd +++ b/distribution/bin/tools.cmd @@ -28,7 +28,7 @@ set CLASSPATH=.;%BASE_DIR%conf;%CLASSPATH% rem =========================================================================================== rem JVM Configuration rem =========================================================================================== -set "JAVA_OPT=%JAVA_OPT% -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=128m" +set "JAVA_OPT=%JAVA_OPT% -server -Xms1g -Xmx1g -Xmn256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m" set "JAVA_OPT=%JAVA_OPT% -Djava.ext.dirs="%BASE_DIR%\lib";"%JAVA_HOME%\jre\lib\ext";"%JAVA_HOME%\lib\ext"" set "JAVA_OPT=%JAVA_OPT% -cp "%CLASSPATH%"" diff --git a/distribution/bin/tools.sh b/distribution/bin/tools.sh index 645a5959..071794c6 100644 --- a/distribution/bin/tools.sh +++ b/distribution/bin/tools.sh @@ -36,7 +36,7 @@ export CLASSPATH=.:${BASE_DIR}/conf:${CLASSPATH} #=========================================================================================== # JVM Configuration #=========================================================================================== -JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:PermSize=128m -XX:MaxPermSize=128m" +JAVA_OPT="${JAVA_OPT} -server -Xms1g -Xmx1g -Xmn256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m" JAVA_OPT="${JAVA_OPT} -Djava.ext.dirs=${BASE_DIR}/lib:${JAVA_HOME}/jre/lib/ext:${JAVA_HOME}/lib/ext" JAVA_OPT="${JAVA_OPT} -cp ${CLASSPATH}" -- GitLab