- newer Java - better support
- understands
docker --cpu 2
- understands
- JVM ergonomics - auto-tuning based on the runtime environment (gc, heap size, compiler)
- class data sharing (CDS)
- re-use class loading outputs - faster startups
- enabled by default
jlinkto create a custom (minimal) JREjdepsto determine required modules- use multi-stage builds
- JVM in a Container (Merikan blog)
- Java 17: What’s new in OpenJDK's container awareness (RedHat)