From b205bd246baacc07db75f8f1226eb779791f3844 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Wed, 31 Aug 2016 11:20:24 +0300 Subject: [PATCH] Enable G1 garbage collector * operate concurrently with applications threads * compact free space without lengthy GC induced pause times * more predictable GC pause durations * better throughput performance * not require a much larger Java heap JIRA: FUEL-187 Change-Id: I42b95969613495d44d3ea1a4fcaae20ed01a26fb --- odl_package/ubuntu/opendaylight | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odl_package/ubuntu/opendaylight b/odl_package/ubuntu/opendaylight index 8fdc4c9..fd84376 100644 --- a/odl_package/ubuntu/opendaylight +++ b/odl_package/ubuntu/opendaylight @@ -9,7 +9,7 @@ setgid odl setuid odl env KARAF_HOME="/opt/opendaylight" -env JAVA_OPTS="-server -Xms256M -Xmx3096M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote" +env JAVA_OPTS="-server -Xms1g -Xmx2g -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote" env OPTS="-Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true" env MAIN="org.apache.karaf.main.Main" env DEBUG="false"