-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Description
After running BCV tasks, Gradle doesn’t free up metaspace memory.
For example, in the Ktor project, each run of apiDump
uses up to 4GB of metaspace memory (#281). The only way to free up this memory is to restart Gradle Daemon.
Here is an example of four consecutive launches of ./gradlew apiDump --rerun-tasks
in the Ktor project.
It is a known Gradle bug:
Steps to reproduce
- Clone Ktor repository
git clone git@github.com:ktorio/ktor.git
- Run VisualVM or any other VM monitoring tool
- Run
./gradlew apiDump --rerun-tasks
several times - Look at metaspace usage by Gradle Daemon process in VisualVM
Possible workaround
Some projects use processIsolation
instead of classLoaderIsolation
(cortinico/ktfmt-gradle#206, sigstore/sigstore-java#283). Could this solution be used for BCV?