-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgradle.properties
More file actions
19 lines (18 loc) · 918 Bytes
/
Copy pathgradle.properties
File metadata and controls
19 lines (18 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Gradle / Kotlin daemon JVM args.
#
# CodeQL's Analyze (java-kotlin) job runs the Kotlin compiler under its
# tracer, which doubles the resident-set pressure on a GitHub Actions
# runner (~7GB available, shared with apt / proxy / tracer / Gradle).
# With Kotlin defaults, `:compileTestKotlin` and
# `:agents-kt-otel:compileTestKotlin` OOM with
# "GC overhead limit exceeded" (run 2026-05-24, exit code 2).
#
# 3072m gives the Kotlin daemon enough headroom for our ~190 test
# classes + KSP + every subproject's test set on CI, and stays well
# below the runner's hard ceiling. Local builds inherit the same
# setting transparently — no impact on dev-laptop runs.
kotlin.daemon.jvmargs=-Xmx3g
# Match the Gradle daemon to the Kotlin daemon. Default was ~1g on CI
# hardware, which was fine for compileKotlin alone but tight when KSP
# + multiple module test-compiles overlap.
org.gradle.jvmargs=-Xmx3g -XX:+UseG1GC