GraalVM native images explained
summary
GraalVM compiles Java apps ahead-of-time into standalone binaries that start in milliseconds — demos show 0.12 seconds startup and native-image builds as fast as 6 seconds — and run with much lower memory, e.g. a Micronaut quotes service at 17 MB runtime. The native-image tool snapshots initialized heap, enforces the closed-world assumption, and uses a Java agent that generates reflection JSON for autoconfiguration; options include allowing incomplete classpath, tracing class initialization, and using runtime profiles (Enterprise) to improve results.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:23About GraalVM
- 4:47About Chromium
- 14:57Work in progress
- 20:59Build and analysis
- 24:43Closed world assumption
- 29:25Reflection
- 33:56Incomplete class pass
- 40:04Native image configuration
- 44:27Start up time
related talks
44mJava In The Cloud with GraalVM
42mJava in the Cloud with GraalVM
46mGraalVM Native Image — Faster, Smarter, Leaner
50mCloud native Java microservices with GraalVM
29mGraalVM in a Nutshell
47mGraalVM as a Platform for Cloud Native Java
49mSupercharge your Native Image applications
47mBring the action: using GraalVM in production
