The numbers from JDK 28's ZGC work are too striking to ignore, and they point to a clear truth: the JVM's most advanced garbage collector is finally addressing its oldest practical friction. JEP 545, now integrated, moves heap memory preparation onto concurrent worker threads, pre-touching memory as it expands and upgrading small pages to large ones on Linux 6.1 and later. The headline gains, a 38% improvement in startup time and a 90% reduction in warmup, are real, but they come with a critical asterisk that every team evaluating this should understand.
That asterisk is the 2 MB initial heap size required to achieve those gains, which depends on the adaptive heap sizing flag from JEP 546, a flag that remains off by default. This isn't a flaw; it's a deliberate choice that respects production stability. ZGC has always traded startup overhead for minimal pause times during live workloads, and this change shifts the cost to where the JVM can manage it concurrently. For developers who have watched their services idle through ZGC's initial memory allocation phase, this is the fix they've been waiting for. But it also means that realizing the full benefit requires active configuration, not just a JDK upgrade. As three investors explain why billions went to Anthropic before the IPO, conviction in infrastructure often comes down to knowing exactly where the hidden leverage is, and this JEP's hidden leverage is in that flag.
The practical impact for Java shops is straightforward: if you run ZGC on modern Linux kernels and your workloads are sensitive to cold-start latency, think serverless, containerized microservices, or any environment where instances come and go, you should test this immediately. The 90% warmup improvement means your application reaches steady-state throughput faster, which directly translates to lower infrastructure costs and better user experience during scaling events. We've seen similar patterns play out in adjacent infrastructure layers. AWS Lambda Puts GPU Inference in Reach Without the Infrastructure Overhead, and the same logic applies here: reducing the time a resource spends ramping up is often more valuable than optimizing its peak performance. ZGC's concurrent memory prep is doing exactly that, turning a sequential bottleneck into a parallel operation.
The open question, and the detail worth watching, is whether the JDK team will flip the adaptive heap sizing flag to on by default in a future update. For now, the JEP delivers a genuine improvement even without it, just not the one the benchmarks advertise. Teams that enable it will see the full effect; teams that don't will still benefit from the concurrent memory prep, just without the aggressive 2 MB starting heap. That gap between headline and reality is exactly the kind of nuance that separates informed adoption from blind upgrade cycles.
