Repository navigation
Give inject-java's Groovy test compilation a 3 GB compiler daemon of its own - #14187
Merged
Merged
Conversation
…n of its own: in a daemon reused from other Groovy compilations it ran out of the 2 GB of the convention
dstepanov
approved these changes
Oct 29, 2026
graemerocher
marked this pull request as ready for review
October 29, 2026 12:08
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



:micronaut-inject-java:compileTestGroovyfailed in CI withJava heap space(run 40775026597, 32 minutes into the build).The convention forks Groovy compilations with a 2 GB heap, and Gradle reuses compiler daemons across the Groovy compilations of different projects. The inject-java test sources are the largest Groovy compilation of the build. In a daemon that has compiled other Groovy test sources first, part of their memory is still live when inject-java's compilation runs, and the 2 GB ceiling is not enough.
Measured locally from GC logs of the compiler daemons (
-Xlog:gc*), compiling the Groovy tests of inject-groovy, http-server-netty, inject-java and runtime with--max-workers=1, so one daemon is reused for all of them:2047M->1559M(2048M), then 1866M at remarkCompiled on its own in a fresh daemon, inject-java's Groovy tests peak at about 1.1 GB live on 5.3.x and 0.75 GB on 5.2.x.
This change gives
compileTestGroovyof inject-javamemoryMaximumSize = "3g":Other Groovy compilations keep the 2 GB of the convention. This starts one extra compiler daemon for this task. The 3 GB is a ceiling: the daemon uses only the heap the compilation needs.