Details

    • Sub-task
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • build-system
    • None

    Description

      The new Gradle build seems to be exhausting memory on the Jenkins machines, causing them to lose their connection and die. This has made our tests extremely flaky.

      We need to tune the Gradle build such that it does not exhaust Jenkins machine resources.

      Gradle build scan shows some information about the Jenkins VM:

      • Operating system Linux 3.19.0-79-generic
      • CPU cores 4 cores
      • Max Gradle workers 4 workers
      • Java runtime Oracle Java(TM) SE Runtime Environment 1.8.0_152-b16
      • Java VM Oracle Java HotSpot(TM) 64-Bit Server VM 25.152-b16 (mixed mode)
      • Max JVM memory heap size 3506 MB

      From the Jenkins Load Statistics page, it appears that each machine has 2 executors.

      Some resources for tuning memory:

       

      We may also be able to improve performance by using Gradle features to remove redundant work:

      • Build Cache: re-use up-to-date outputs from previous builds
      • Gradle Daemon: re-use worker process and cache output status

      Attachments

        Issue Links

          Activity

            People

              swegner Scott Wegner
              swegner Scott Wegner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m