build: fix the inert Kotlin compile daemon heap property (#7132)

This commit is contained in:
James Rich authored and GitHub committed 2026-09-11 08:01:18 -05:00
1 parent ef973c275f
commit 354db2f1db
2 files changed
+9 -5

No files matched your search

+5 -3
View File
@@ -12,10 +12,12 @@
org.gradle.daemon=false
# ── Memory ────────────────────────────────────────────────────────────
# Standard GitHub runners have 7 GB RAM. Keep Gradle + Kotlin daemon
# within budget (4g Gradle + 2g Kotlin daemon + 1g OS/tooling headroom).
# Public-repo ubuntu-24.04 runners have 16 GB RAM. Keep Gradle + Kotlin daemon
# within budget (4g Gradle + 6g Kotlin daemon, leaving room for lint and K/N).
# Only kotlin.daemon.jvmargs is read from a properties file; kotlin.daemon.jvm.options
# is a system property. Unset, the daemon inherits org.gradle.jvmargs' 4g and OOMs.
org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8
kotlin.daemon.jvm.options=-Xmx2g -XX:+UseParallelGC
kotlin.daemon.jvmargs=-Xmx6g -XX:+UseG1GC
# ── Parallelism ───────────────────────────────────────────────────────
org.gradle.parallel=true