Enable G1GC by default in onos-service
Change-Id: I572007d7567c3b98855ce1310f0117d0dac40041
diff --git a/tools/package/bin/onos-service b/tools/package/bin/onos-service
index b03dd60..cac0031 100755
--- a/tools/package/bin/onos-service
+++ b/tools/package/bin/onos-service
@@ -10,7 +10,7 @@
# Do modify the keystore location/password and truststore location/password accordingly
#export JAVA_OPTS="${JAVA_OPTS:--DenableNettyTLS=true -Djavax.net.ssl.keyStore=/home/ubuntu/onos.jks -Djavax.net.ssl.keyStorePassword=222222 -Djavax.net.ssl.trustStore=/home/ubuntu/onos.jks -Djavax.net.ssl.trustStorePassword=222222}"
-export JAVA_OPTS=${JAVA_OPTS:--Dkaraf.log.console=INFO -Dds.lock.timeout.milliseconds=10000}
+export JAVA_OPTS=${JAVA_OPTS:--XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Dkaraf.log.console=INFO -Dds.lock.timeout.milliseconds=10000}
set -e # exit on error
set -u # exit on undefined variable