- Install and open VisualVM
brew casks install visualvm
- Stop existing daemons
./gradlew --stop
- When e.g. running Android compilation, Gradle will spawn two daemons: Gradle Daemon and Kotlin Compile Daemon. To merge those two into one daemon, specify kotlin compiler execution strategy like this:
-Dkotlin.compiler.execution.strategy="in-process"
- See results on the right, it should be simillar to this:
