vibin
08/28/2023, 9:48 AM-Xmx
of the Kotlin daemon in my project.
I see that a big chunk of compilation is being done in org.jetbrains.kotlin.gradle.*
tasks. (all these tasks run in the daemon, right?)
Contrary to my expectations, my builds are performing well (minimal GC time) with low -Xmx
like -Xmx=1536m
for Kotlin daemon and -Xmx=5g
for Gradle daemon.
I'm using the default compilation strategy where in Kotlin daemon runs as a separate process
What can explain this?vibin
08/28/2023, 9:53 AMtapchicoma
08/28/2023, 11:35 AMKotlinCompile
and KaptGenerateStubsTask
should use Kotlin daemon. You could attach VisualVM (or other tool) to the KotlinDaemon process and inspect there heap usagevibin
08/28/2023, 1:15 PMvibin
08/28/2023, 7:04 PMKotlinCompile
and KaptGenerateStubsTask
do take up significant CPU but not so much with respect to memory