Trying to understand ZGC

Thomas Schatzl thomas.schatzl at oracle.com
Wed Nov 28 19:35:20 UTC 2018


Hi Stefan,

----- Original Message -----
From: stefan.reich.maker.of.eye at googlemail.com

>
> For now I think I'll stick to G1 as it has tolerable pauses (<50ms,
> roughly, unless I call System.gc()). I do have to call System.gc()
> sometimes in order to return memory to the OS.

Fyi with JDK12 G1 will give back memory in regular concurrent marking
cycles.
You can also tell it to regularly issue a concurrent cycle to do that.

See https://bugs.openjdk.java.net/browse/JDK-8204089 for the latter
feature.

Thanks,
  Thomas


More information about the zgc-dev mailing list