14 points · by jameshiew · 5y ago · 7 comments
I'm also trying out using the Z garbage collector and setting the ratio of young to old generation to 1, as suggested here[1], as I often have multiple projects open at once. I'm not sure how much of an impact this is having though as I'm trying this all together, but the heap memory indicator does seem to fill up substantially more when indexing before a garbage collection happens.
[1]: https://www.jetbrains.com/help/idea/tuning-the-ide.html#common-jvm-options
-XX:+IgnoreUnrecognizedVMOptions
-XX:+UnlockExperimentalVMOptions
-XX:+UseZGC
-XX:-UseG1GC
-XX:NewRatio=1
-Xms4G
-Xmx4GThe first runtime I tried was Corretto 17 which crashed on me, and I had to delete some `idea.jdk` file somewhere or other to get IntelliJ to start up again. That file seems to contain which JVM to use when starting IntelliJ, I use Toolbox as well (on Ubuntu).
[1]: https://www.jetbrains.com/help/idea/switching-boot-jdk.html
It does feel snappier though, judging by some of the window operations, which always feel rather spongy and slow, even after the JVM has had a chance to warm up.
JB should consider this change!