From bf7598ff39c212b40eaa5db0abf3464997ba8131 Mon Sep 17 00:00:00 2001 From: Jian Li Date: Tue, 20 Mar 2018 17:30:40 +0900 Subject: [PATCH] Fix ONOS init bug in case VM memory size is smaller than 16GB With current setting, ONOS package cannot be instantiated when the target VM RAM size is smaller 16GB. To make ONOS be runnable, we should not specify the reserved JVM RAM size. As the comment noted, JAVA_OPTS should be specified only for performance test purpose. Change-Id: Idfa98d70d33840077851bac150b89bbfa0e1ca5d --- tools/package/bin/onos-service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/package/bin/onos-service b/tools/package/bin/onos-service index db7b0064ea..f528e53fbe 100755 --- a/tools/package/bin/onos-service +++ b/tools/package/bin/onos-service @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- # uncomment the following line for performance testing -export JAVA_OPTS="${JAVA_OPTS:--Xms16G -Xmx16G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps}" +# export JAVA_OPTS="${JAVA_OPTS:--Xms16G -Xmx16G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps}" # uncomment the following line for Netty TLS encryption # Do modify the keystore location/password and truststore location/password accordingly