Lightweight cloud-native Java applications

Oleg Šelajev
May 28, 2019 · 2 min read

In this short note, we want to visualize the benefits GraalVM native images offer you.

Several projects have accepted GraalVM Native Image as a platform for their applications: Quarkus, Micronaut, Helidon — support GraalVM native images. Spring Framework recently announced the upcoming support for native images.

We measured startup and memory footprint of a basic microservice in Helidon, Quarkus, and Micronaut and here are the results we got.

Let’s start with the startup time. GraalVM native images allow any framework to start up in milliseconds. While there are differences in the exact measurements between the implementations, the largest portion of the benefits are coming from using native images.

GraalVM native images are ~50x faster to start up.

We see similar results when we measure memory footprint, which on the graph below is the full RSS of the process. Again, for all frameworks GraalVM native images significantly reduce the runtime memory requirements compared to running on HotSpot.

GraalVM native images use ~5x less memory.

We believe that GraalVM native images can become the best way for deploying cloud native applications and we are excited to see many in the ecosystem believing the same. While we continue to work on enabling easier configuration and broader support for the existing libraries, already now GraalVM native images can be used with several web-application frameworks and significantly improve their startup times and runtime memory usage.

More information about getting started with GraalVM native images can be found on the GraalVM website.

When you download GraalVM binaries: graalvm.org/downloads, check out these helpful links to the getting started guides for the frameworks we looked at:

GraalVM team blog - https://www.graalvm.org

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store