Starting with JDK 27, the HotSpot JVM will use G1 as the default garbage collector in all environments, including constrained ones (single CPU or less than 1792 MB RAM) where Serial GC was previously preferred. Recent improvements have made G1 competitive with Serial in those environments, offering similar native memory overhead, slightly lower throughput, and lower maximum latencies. Serial GC is not removed and remains available. Applications running in constrained environments without an explicit GC selection are advised to benchmark against different GCs or explicitly configure Serial if they want to preserve previous behavior.
5 Impressions