3 ms·
> Once the JVM has allocated heap space it will never let go of it. While this used to be true in the past, some of the GCs available to the JVM may now uncomm
by mrighele 7y ago
> Once the JVM has allocated heap space it will never let go of it.
While this used to be true in the past, some of the GCs available to the JVM may now uncommit heap memory. This is for sure the case with ZGC [1], G1 [2] and I think also with Shenandoah [3]
[1] https://openjdk.java.net/jeps/351 https://openjdk.java.net/jeps/351
[2] https://openjdk.java.net/jeps/346 https://openjdk.java.net/jeps/346
[3] https://shipilev.net/jvm/anatomy-quarks/21-heap-uncommit/ https://shipilev.net/jvm/anatomy-quarks/21-heap-uncommit/