ZGC will prepare memory in the background, so Java services on JDK 28 should reach full speed much sooner
JEP 545 has been integrated into JDK 28 and promises that developers will no longer need to tune heap size themselves.
In JDK 28, the ZGC garbage collector will no longer wait until an application starts up to prepare memory. Under JEP 545, a proposal by Erik Österlund, ZGC will request memory in the background as the heap grows, and separate worker threads will touch pages before the application needs them. Together those threads may use at most a quarter of processor capacity. InfoQ reports that the proposal has been integrated into JDK 28.
Until now, users had to choose: touching memory in advance speeds up warmup but slows startup. In a test with the Spring PetClinic sample application on a machine with 32 GB of memory, time to first response fell by 38 percent compared with such a configuration, and warmup went from about 80 seconds to under ten, the proposal states. On Linux 6.1 and later, ZGC converts small 4 KB memory pages into 2 MB pages at runtime, without administrators having to reserve them in advance.
InfoQ points out that the small 2 MB initial heap behind those figures currently requires a separate option from JEP 546, which is off by default. Applications tuned around a larger initial heap may warm up more slowly and may need retuning. JDK 28 enters its first rampdown phase on 3 December and is scheduled for release on 9 March 2027.