2020-02-22

Java - ZGC (A Scalable Low-Latency Garbage Collector)

The Z Garbage Collector, also known as ZGC, is a scalable low latency garbage collector.

It is designed to meet the following goals:

  • Pause times do not exceed 10 ms
  • Pause times do not increase with the heap or live-set size
  • Handle heaps ranging from a few hundred megabytes to multi terabytes in size

ZGC is a concurrent garbage collector, meaning that all heavy lifting work (marking, compaction, reference processing, string table cleaning, etc) is done while Java threads continue to execute. This greatly limits the negative impact that garbage collection has on application response times.

ZGC is included as an experimental feature. To enable it, the -XX:+UnlockExperimentalVMOptions option will therefore need to be used in combination with the -XX:+UseZGC option.

This experimental version of ZGC has the following limitations:
  • It is only available on Linux/x64.
  • Using compressed oops and/or compressed class points is not supported. The -XX:+UseCompressedOops and -XX:+UseCompressedClassPointers options are disabled by default. Enabling them will have no effect.
  • Class unloading is not supported. The -XX:+ClassUnloading and -XX:+ClassUnloadingWithConcurrentMark options are disabled by default. Enabling them will have no effect.
  • Using ZGC in combination with Graal is not supported.

1 comment:

  1. You should see how my colleague Wesley Virgin's story starts with this SHOCKING AND CONTROVERSIAL VIDEO.

    Wesley was in the army-and soon after leaving-he revealed hidden, "mind control" tactics that the CIA and others used to get everything they want.

    As it turns out, these are the EXACT same methods many celebrities (notably those who "became famous out of nowhere") and top business people used to become rich and successful.

    You probably know that you utilize only 10% of your brain.

    That's because the majority of your brainpower is UNTAPPED.

    Perhaps this conversation has even taken place IN YOUR own head... as it did in my good friend Wesley Virgin's head about 7 years back, while driving an unlicensed, beat-up trash bucket of a car without a driver's license and with $3.20 in his pocket.

    "I'm absolutely frustrated with living paycheck to paycheck! When will I become successful?"

    You took part in those conversations, ain't it so?

    Your success story is waiting to happen. All you need is to believe in YOURSELF.

    Take Action Now!

    ReplyDelete