Hi everyone , I see that after upgrading to 1.9.20...
# gradle
a
Hi everyone , I see that after upgrading to 1.9.20 , the kotlinCompileDaemon is taking much heap than before , sometimes it even exhausts 4g . Is this a known fact because I cannot see any issues raised regarding any leaks in the Compile Daemon
1
s
Something similar happening with with me. Whenever I try to build my Kotlin Multiplatform project sometimes build getting failed stating that increase heap size. Although I have setit for the 4096 which is 4GB
t
@aishwaryabhishek3 does your project is also multiplatform?
also try to update your project to the latest Kotlin release - 1.9.22
a
@tapchicoma , No it is an android project , will bump upto 1.9.22 and see if there are improvements.
t
if you will still see OOM in Kotlin daemon - you could trigger heap dump via
-XX:+HeapDumpOnOutOfMemoryError
and then either investigate it yourself or upload it to https://uploads.jetbrains.com/ (ping me with upload id)
👀 1
a
Will do , funnily enough I have that option added to
org.gradle.jvmargs
but somehow when the kotlinCompileDaemon starts I do not see
+HeapDumpOnOutOfMemoryError
enabled for KotlinCompileDaemon . Do I need to specifically add that options to
kotlin.daemon.jvmargs
?
t
Yes, you need explicitly add it into
kotlin.daemon.jvmargs
👀 1
Kotlin daemon only inherits
Xmx
from Gradle daemon
a
TIL that , thanks .
a
after upgrading to 1.9.20
Could you please share what was the previous version that you used?
a
@tapchicoma , upgraded to 1.9.22 , I do see some drop in average heap 😄. , But I also see sudden spikes in the heap Is this expected ?
@Alexander.Likhachev , I was on 1.7.21 before that , last version which supported kotlin android synthetics.