diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2020-01-09 09:58:26 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-05 20:06:21 +0000 |
commit | 3694c0d9e72a65ea7ab497b462f48850b138dcdd (patch) | |
tree | 02990c0efe2f5149250d094d56d7184e3b6b99bd /server/sonar-process | |
parent | 191a19739e294985caf5c6dbce7766443533d86c (diff) | |
download | sonarqube-3694c0d9e72a65ea7ab497b462f48850b138dcdd.tar.gz sonarqube-3694c0d9e72a65ea7ab497b462f48850b138dcdd.zip |
SONAR-12686 MaxDirectMemorySize JVM option should be defined for ES
This option was set by default in ES 6.X already but we had missed it.
ES sets it to half the max heap from Java code (see class JvmErgonomics)
To not have to get into the complexity of interpreting options to know what is the configured max heap,
we just add this option to the defaults and document it
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/ProcessProperties.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/ProcessProperties.java b/server/sonar-process/src/main/java/org/sonar/process/ProcessProperties.java index ec4288bc663..3e5b8c3b473 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/ProcessProperties.java +++ b/server/sonar-process/src/main/java/org/sonar/process/ProcessProperties.java @@ -75,7 +75,7 @@ public class ProcessProperties { SEARCH_HOST("sonar.search.host", InetAddress.getLoopbackAddress().getHostAddress()), SEARCH_PORT("sonar.search.port", "9001"), SEARCH_HTTP_PORT("sonar.search.httpPort"), - SEARCH_JAVA_OPTS("sonar.search.javaOpts", "-Xmx512m -Xms512m -XX:+HeapDumpOnOutOfMemoryError"), + SEARCH_JAVA_OPTS("sonar.search.javaOpts", "-Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError"), SEARCH_JAVA_ADDITIONAL_OPTS("sonar.search.javaAdditionalOpts", ""), SEARCH_REPLICAS("sonar.search.replicas"), SEARCH_MINIMUM_MASTER_NODES("sonar.search.minimumMasterNodes"), |