Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1690

Make sure that all JVM heap size are fixed on CI slaves

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      Default max heap size is 1/4 of the total memory, this can give very different results from a 8g ram to 120g ram slave.

      For instance the jenkins slave.jar is launched without heap configuration the RSS can grow up to 30g in theory.

      Our default surefire configuration for unit test is set with -Xmx1g, but module that override the org.apache.maven.plugins argLine configuration are back to default JVM.
      See

      This can create different behavior for tests because GC on huge heap can generate very long pause (especially if there are swap available on the server)

      See

      addons/nuxeo-mqueues/nuxeo-mqueues-core/pom.xml
        <build>
          <plugins>
            <!-- This is needed to prevent GC overflow in test suite with Chronicle Queues -->
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <configuration>
                <argLine>-disableassertions</argLine>
              </configuration>
            </plugin>
          </plugins>
        </build>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: