From eae5ec6214fd9896d577c8d268727bff6ee1b597 Mon Sep 17 00:00:00 2001 From: Davy Vanherbergen Date: Tue, 5 Jan 2016 23:38:21 +0100 Subject: [PATCH] Check platform before setting G1GC. Signed-off-by: Davy Vanherbergen --- .../distribution-resources/src/main/resources/bin/setenv | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/distributions/distribution-resources/src/main/resources/bin/setenv b/distributions/distribution-resources/src/main/resources/bin/setenv index 3e20ced99f..200f1dedf1 100755 --- a/distributions/distribution-resources/src/main/resources/bin/setenv +++ b/distributions/distribution-resources/src/main/resources/bin/setenv @@ -81,4 +81,9 @@ export JAVA_OPTS="${JAVA_OPTS} # # set jvm options # -export EXTRA_JAVA_OPTS="-XX:+UseG1GC -Xms64m -Xmx256m" \ No newline at end of file +ARCH=`arch` +case "$ARCH" in + *arm*) export EXTRA_JAVA_OPTS="-Xmx256m" ;; + *) export EXTRA_JAVA_OPTS="-XX:+UseG1GC -Xmx256m" ;; +esac +