Do you trade off startup and warmup by tuning -Xms, -Xmx and -XX:+AlwaysPreTouch appropriately? And did you set -XX:+UseTransparentHugePages together with the appropriate shmem_enabled kernel config? Me neither. ”JEP 545: Faster Startup and Warmup with ZGC” is candidate now: openjdk.org/jeps/545
openjdk.org
JEP 545: Faster Startup and Warmup with ZGC
Improve application startup and warmup by enhancing the Z Garbage Collector to acquire and prepare physical memory more swiftly and efficiently in response to application needs.