Reduce heap memory use for surefire tests on JDK 8 in the Run core module

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: L3 - Default
    • 7.17.0, 7.17.0-alpha5
    • Affects Version/s: None
    • Component/s: run
    • None

      JDK8 is not as resource-efficient as newer JDK versions. We use a lot of different application contexts in our Run (core) tests, and this impacts the heap memory on JDK 8. As a result, on JDK 8 the tests fail with an OutOfMemoryError: GC Overhead Limit Exceeded.

      Acceptance Criteria (Required on creation):

      • Apply the @DirtiesContext to unused application contexts so that they are not cached.

      Hints:

      WIth CAM-13966 we added a lot more tests, which increased the memory footprint of the tests.

            Assignee:
            Nikola Koevski
            Reporter:
            Nikola Koevski
            Nikola Koevski Nikola Koevski
            Miklas Boskamp Miklas Boskamp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: