
- Java 15 Tutorial
- Java 15 - Home
- Java 15 - Overview
- Java 15 - Environment Setup
- Java 15 Language Changes
- Java 15 - Sealed Classes
- Java 15 - Pattern for instanceOf
- Java 15 - Text Blocks
- Java 15 - record
- Java 15 - record & Sealed Classes
- Java 15 JVM Changes
- Java 15 - Hidden Classes
- Java 15 - Garbage Collectors
- Java 15 - Other Changes
- Java 15 - Deprecation & Removals
- Java 15 - Other Enhancements
- Java 15 - Deprecation & Removals
- Java Other Versions Tutorials
- Java Tutorial
- Java 8 Tutorial
- Java 9 Tutorial
- Java 10 Tutorial
- Java 11 Tutorial
- Java 12 Tutorial
- Java 13 Tutorial
- Java 14 Tutorial
- Java 15 Useful Resources
- Java 15 - Quick Guide
- Java 15 - Useful Resources
- Java 15 - Discussion
Java 15 - Garbage Collectors
Java 15 has made the ZGC, Z Garbage Collector a standard feature. It was an experimental feature till Java 15. It is low latency, highly scalable garbage collector.
ZGC was introduced in Java 11 as an experimental feature as developer community felt it to be too large to be released early. A lot of improvements are done to this garbage collection since then, for example −
Concurrent class unloading
Uncommiting of unused memory
Support for Class Data Sharing
NUMA Awareness
Multithreaded Heap Pre-touch
Max Heap Size limit from 4 TB to 16 TB.
ZGC is highly performant and works efficiently even in case of massive data applications e.g. machine learning applications. It ensures that there is no long pause while processing the data due to garbage collection. It supports Linux, Windows and MacOS.
The Shenandoah low-pause-time garbage collector is now out of the experimental stage. It had been introduced into JDK 12 and from java 15 onwards, it is a part of standard JDK.