GraalVM Native Image quick reference updated for JDK 23, covering key changes and features. Native Image is now bundled directly in the GraalVM distribution. The guide covers building native executables via command line or Native Build Tools (Maven/Gradle plugins), including static and mostly-static linking for container deployments. Optimization options include Profile-Guided Optimization (PGO) for throughput, G1 GC support, -O3 for max performance, -Os for smaller binaries, and -march=native/-march=compatibility for CPU targeting. Developer tooling additions include Build Reports (--emit build-report), SBOM generation (--enable-sbom with CycloneDX), expanded monitoring via --enable-monitoring, and Linux Perf profiler support.

8m read timeFrom medium.com
Post cover image
Table of contents
BuildingOptimizingGet Olga Gupalo’s stories in your inboxUseful Developer ToolsSummary

Sort: