Is GraalVM Native Image becoming niche technology?
Well-advertised advantages of native-image are startup time, binary size and memory usage.
But.
Recent JDK versions did a lot of work on java startup speedup like https://openjdk.org/jeps/483 with plans for more.
jlink produces binary images of similar size. Yes, 50 MB binary vs 50MB jre with application modules.
To my experience, there is little RAM usage improvement in native-image over standard JRE.
With addition of profiling counters and even compiled code to CDS, we could get similar results while retaining all the power of hotspot.
Do you have different experience? What do you think?
95
Upvotes
View all comments
Show parent comment
1
u/koflerdavid Jan 12 '26
Module descriptors and documentation confirming official support would be a good start. I know that it usually just works, but I've found GitHub issues stating that they prioritize native image. jlink support is not first-class.