]> source.dussan.org Git - sonarqube.git/commitdiff
Reduce memory for Elasticsearch to 128M for ITs
authorEric Hartmann <hartmann.eric@gmail.com>
Mon, 21 Aug 2017 12:08:47 +0000 (14:08 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 5 Sep 2017 12:24:13 +0000 (14:24 +0200)
tests/src/test/java/org/sonarqube/tests/Category1Suite.java
tests/src/test/java/org/sonarqube/tests/Category2Suite.java
tests/src/test/java/org/sonarqube/tests/Category3Suite.java
tests/src/test/java/org/sonarqube/tests/Category4Suite.java
tests/src/test/java/org/sonarqube/tests/Category6Suite.java

index d99720785b22eb784ffda42c1250dd863ccc3585..2c684a3fca2ca6f500dc3f52dc8067a24861ac72 100644 (file)
@@ -127,6 +127,9 @@ public class Category1Suite {
 
     .addPlugin(pluginArtifact("posttask-plugin"))
 
+    // reduce memory for Elasticsearch to 128M
+    .setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m")
+
     .addPlugin(xooPlugin())
     .build();
 
index c101253c84a4cfb23cedaaa74c5502ec6b3b25ff..c3b8a749925510bb375237fa393912f2e5ab5609 100644 (file)
@@ -109,6 +109,9 @@ public class Category2Suite {
     // 1 second. Required for notification test.
     .setServerProperty("sonar.notifications.delay", "1")
 
+    // reduce memory for Elasticsearch to 128M
+    .setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m")
+
     .build();
 
 }
index 25dd138a78ebf906db0eb2a60f36e6e489fc6fb9..73d44089ac435f2516ca891234f5f1eb7c484cb7 100644 (file)
@@ -86,5 +86,8 @@ public class Category3Suite {
     // used by ProjectBuilderTest
     .addPlugin(pluginArtifact("project-builder-plugin"))
 
+    // reduce memory for Elasticsearch to 128M
+    .setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m")
+
     .build();
 }
index 6e50225b59a2812219793bb877cb4a08f83758ff..84d96dca1892ce5dc187c64131642d4675c12282 100644 (file)
@@ -125,5 +125,8 @@ public class Category4Suite {
     // Used by LogsTest
     .setServerProperty("sonar.web.accessLogs.pattern", LogsTest.ACCESS_LOGS_PATTERN)
 
+    // reduce memory for Elasticsearch to 128M
+    .setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m")
+
     .build();
 }
index 9d0c046703ce6b0da375a3af4b405693bcd0ee56..01e7db07d077269b874baf0f238cbfa604c8fde4 100644 (file)
@@ -98,5 +98,8 @@ public class Category6Suite {
     .addPlugin(pluginArtifact("fake-billing-plugin"))
     .addPlugin(pluginArtifact("ui-extensions-plugin"))
 
+    // reduce memory for Elasticsearch to 128M
+    .setServerProperty("sonar.search.javaOpts", "-Xms128m -Xmx128m")
+
     .build();
 }