I think I just found a thread leak in Gradle daemon in 8.12 nightly. Anyone else see similar behavior? Going to check it over in a couple different scenarios and older Gradle versions.
Comments
Log in with your Bluesky account to leave a comment
So I went back through Gradle versions 8.10.2, 8.11, etc and the behavior is consistent:
Run a simple build task, can even be ./gradlew tasks, and you'll see the Gradle Daemon slowly but surely grow memory to fill the maximum heap before GC events take it down. But then keep growing again.
Whats also interesting is how putting this in a loop will just keep spawning more and more threads for the Gradle Daemon. Stopping it will eventually see those threads die off... at least some of them.
The memory growth is more concerning to me than the threads staying alive. I wonder if this memory growth is also happening during builds and not just when the daemon is idle.
Comments
Run a simple build task, can even be ./gradlew tasks, and you'll see the Gradle Daemon slowly but surely grow memory to fill the maximum heap before GC events take it down. But then keep growing again.