Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

build: raise Gradle daemon heap to avoid intermittent CI OOM (#7151)

ConnorYoha380a822342c
diff --git a/gradle.properties b/gradle.properties
index e99fbdc918..0e8306a444 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,9 @@
+# Gradle daemon heap. The default (512 MiB) is exhausted by the larger builds
+# (notably the saas flavor) under parallel execution, causing intermittent
+# "JVM garbage collector is thrashing" daemon deaths in CI. 2 GiB heap + 1 GiB
+# metaspace gives comfortable headroom on CI runners and typical dev machines.
+org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=1g
+
# Enables parallel execution of tasks, allowing multiple tasks to run simultaneously
org.gradle.parallel=true