How do I reduce the number of kotlin-daemons or gr...
# announcements
a
How do I reduce the number of kotlin-daemons or gradle-daemon's in my machine? They take all 16GB that I have. And when I check. I might find something like two kotlin daemons and three gradle daemons.
z
To kill gradle daemons,
./gradlew --stop
To kill everything else,
killall -9 java
(might also kill your IDE)
You can also run
jps
and manually
kill -9
all the PIDs you don’t want
a
I know how to kill them. But I want to stop them from spawning multiple processes. Say if there is one kotlin-daemon, then it shouldn't spawn another and instead use the existing. Since sometimes daemon's can't be reused, then it kills the one alive and spawns a new one. so that at a specific moment there is only kotlin/gradle daemon
l
Are you working on multiple projects with different Kotlin versions? That might explain.
a
No, I am working one gradle project with multpile subprojects.
d
I've had this exact issue before but the only thing I've been able to find to fix it is to reboot ¯\_(ツ)_/¯
a
It is annoying as hell
l
Did you report it on kotl.in/issue? Also, specify that it's annoying as hell, that, along with vote count can help prioritize.