From 403bf550aab4009a09ce7c32706bd46dc91f774b Mon Sep 17 00:00:00 2001 From: Anthony Stirling Date: Sat, 13 Jun 2026 13:24:40 +0100 Subject: [PATCH] Raise Gradle daemon heap to fix CI OOM on proprietary and saas builds --- gradle.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gradle.properties b/gradle.properties index 3916ad9c06..2c8b82f441 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,9 @@ +# Daemon heap. Gradle's small default OOMs ("daemon GC thrashing" / "Java heap space") on the CI +# runners for the proprietary and saas flavors, which pull in more modules and run Quarkus +# augmentation plus parallel test execution in the daemon. 4g fits comfortably on the 16GB build +# runners (the core flavor has fewer modules and passed even on the default heap). +org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g + # Enables parallel execution of tasks, allowing multiple tasks to run simultaneously org.gradle.parallel=true