This message was deleted.
# general
s
This message was deleted.
e
In the last screenshot the 7.3gb process is gradle daemon, and the 5gb process is the kotlin compiler daemon. The other screenshots are showing info from jconsole for the gradle daemon. Perhaps there's a classloader leak somewhere? Looks like something is consuming ~100mb of non heap memory every build (the heap usage seems fine), which matches up with watching the gradle daemon process resources go up ~150mb each build.
This classloader is holding 17.5k classes. There are several others holding ~10k classes.
These are the gc roots that lead to it
The 4 next biggest (11k, 10.5k, 10k, and 6k) all essentially look like this:
And their gc roots:
Using the Android hprof analyzer stripped out the data I was trying to look at, so that didn't work. Looking through the dump, it seems that there's a bunch of these classloaders and the one thing they all have in common is a gc root path through either a `org.jetbrains.kotlin.daemon.common.LoopbackNetworkInterface$ClientLoopbackSocketFactory`or
org.jetbrains.kotlin.daemon.common.LoopbackNetworkInterface$ServerLoopbackSocketFactory