Skip to content

Commit 0f35078

Browse files
committed
chore: raise ee-test JVM heap to 8G to avoid OOM under Spring Boot 4
The ee-test suite runs all tests in one JVM and caches up to 32 Spring test contexts (spring.test.context.cache default). Spring Boot 4 contexts are heavier, so 32 cached contexts intermittently exhaust the 4G test heap, throwing OutOfMemoryError during a later context load (surfaces as flaky QaCheck* / ee-test failures). The GitHub runner has ~16G, so raising the forked test JVM heap to 8G gives the context cache room without risking OS memory pressure (only this JVM plus the gradle process and Postgres/Redis run).
1 parent 2286077 commit 0f35078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ee/backend/tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ allOpen {
2929

3030
tasks.named('test', Test) {
3131
useJUnitPlatform()
32-
maxHeapSize = "4096m"
32+
maxHeapSize = "8192m"
3333
rootProject.setTestRetry(it)
3434
}
3535

0 commit comments

Comments
 (0)