Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the use of ZGC garbage collector in java

Shulou Source: shulou.com Published: 2022-06-01 09:17:35 09月26日 Update

Editor to share with you what is the use of the ZGC garbage collector in java, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

I. brief introduction

Java 11 includes a brand new garbage collector, ZGC, which was developed by Oracle and promises very low pause times on TB-counting heaps. In this article, we will introduce the motivation for developing a new GC, a technical overview, and some of the possibilities opened by ZGC.

So why need a new GC? After all, Java 10 has four garbage collectors that have been released for many years, and almost all of them are infinitely adjustable. To put it another way, G1 introduced Hotspot VM in 2006. The largest AWS instance at the time had 1 vCPU and 1.7GB memory, but today AWS is happy to rent you a x1e.32xlarge instance with 128 vCPU and 3904GB memory. The design goal of ZGC is to support TB memory capacity and low pause time (

Tags: Phases objects memory tags programs applications threads positioning barriers work garbage collectors time pointers and at the same time physics allocation support testing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple Shulou Technology Redmi Docker