Graal: How to use the new JVM JIT compiler in real life
summary
Graal is the Java-written JIT now available via JDK 9’s JVMCI and JDK 10’s JEP 317 and can be enabled with -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler or precompiled with jaotc (JEP 295). It bootstraps lazily at tier 4, compiles roughly ~5,000 Graal methods which adds about ~600 ms extra startup in tests, allocates compilation memory on the Java heap (risk of OOME without heap isolation), and in Twitter/Scala runs reduced CPU ~10% and showed up to ~40% faster runtime with p99 latency down ~20% in demos.
AI-written summary · about
chapters (8)
- 0:00Introduction and setup
- 5:19What is Graal VM
- 11:46Why use Graal at Twitter
- 15:17Enabling Graal in HotSpot
- 22:33Bootstrapping Graal
- 27:53Java heap usage with Graal
- 33:55Performance benchmarks
- 39:43Summary and call to action
related talks
49mGraal: How to use the new JVM JIT compiler in real life
05mInterview with
38mGraal
33mNew Opportunities for Developers with GraalVM
20mMaximizing Java Application Performance with GraalVM
43mThe Virtual Machine Under the Hood
36mDeep dive into GraalVM. To JIT or not to JIT
54mDeveloper's Introduction to GraalVM
