From 7bef4ae1abae10e4509f7cf0756033dc9478282a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 2 Dec 2014 10:20:28 +0100 Subject: [PATCH] Increase default ES max heap size from 256m to 1G --- .../src/main/java/org/sonar/application/DefaultSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-application/src/main/java/org/sonar/application/DefaultSettings.java b/sonar-application/src/main/java/org/sonar/application/DefaultSettings.java index ede244379cf..de9f68054fa 100644 --- a/sonar-application/src/main/java/org/sonar/application/DefaultSettings.java +++ b/sonar-application/src/main/java/org/sonar/application/DefaultSettings.java @@ -58,7 +58,7 @@ class DefaultSettings { private static Map defaults() { Map defaults = new HashMap(); defaults.put(ProcessConstants.CLUSTER_NAME, "sonarqube"); - defaults.put(ProcessConstants.SEARCH_JAVA_OPTS, "-Xmx256m -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true " + + defaults.put(ProcessConstants.SEARCH_JAVA_OPTS, "-Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true " + "-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly " + "-XX:+HeapDumpOnOutOfMemoryError"); defaults.put(ProcessConstants.SEARCH_JAVA_ADDITIONAL_OPTS, ""); -- 2.39.5