Hello! While investigating OOMs in our build we detected that heap space and metaspace is not being reclaimed after the build finishes, and mainly meta space keeps growing with each incremental build we run on both Gradle and Kotlin daemons.
It also seems that when ksp tasks run, the heap and meta space start to grow considerably
Is it possible that there is a memory leak somewhere in KSP?
Here's some info while running the heap dump through Eclipse MAT and Visual VM
I can share the heap dump if that's helpful. Let me know if you need anything else from my side to investigate this
Hello! While investigating OOMs in our build we detected that heap space and metaspace is not being reclaimed after the build finishes, and mainly meta space keeps growing with each incremental build we run on both Gradle and Kotlin daemons.
It also seems that when ksp tasks run, the heap and meta space start to grow considerably
Is it possible that there is a memory leak somewhere in KSP?
Here's some info while running the heap dump through Eclipse MAT and Visual VM
I can share the heap dump if that's helpful. Let me know if you need anything else from my side to investigate this