From 5356d8821bf48a3995dc2928c2c091be005b557f Mon Sep 17 00:00:00 2001 From: Torsten Hain Date: Mon, 28 Sep 2020 23:38:21 +0200 Subject: [PATCH] fix typo in docker/druid.sh (#10433) DRUID_NEWSIZE should not set MaxNewSize. --- distribution/docker/druid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/docker/druid.sh b/distribution/docker/druid.sh index 4cdca7fd3ce..5e247932bb9 100755 --- a/distribution/docker/druid.sh +++ b/distribution/docker/druid.sh @@ -133,7 +133,7 @@ fi if [ -n "$DRUID_XMX" ]; then setJavaKey ${SERVICE} -Xmx -Xmx${DRUID_XMX}; fi if [ -n "$DRUID_XMS" ]; then setJavaKey ${SERVICE} -Xms -Xms${DRUID_XMS}; fi if [ -n "$DRUID_MAXNEWSIZE" ]; then setJavaKey ${SERVICE} -XX:MaxNewSize -XX:MaxNewSize=${DRUID_MAXNEWSIZE}; fi -if [ -n "$DRUID_NEWSIZE" ]; then setJavaKey ${SERVICE} -XX:NewSize -XX:MaxNewSize=${DRUID_NEWSIZE}; fi +if [ -n "$DRUID_NEWSIZE" ]; then setJavaKey ${SERVICE} -XX:NewSize -XX:NewSize=${DRUID_NEWSIZE}; fi if [ -n "$DRUID_MAXDIRECTMEMORYSIZE" ]; then setJavaKey ${SERVICE} -XX:MaxDirectMemorySize -XX:MaxDirectMemorySize=${DRUID_MAXDIRECTMEMORYSIZE}; fi JAVA_OPTS="$JAVA_OPTS $(cat $SERVICE_CONF_DIR/jvm.config | xargs)"