TheKoguryo's Tech Blog

Version 2023.09.08

7.2 Using GraalVM

GraalVM is a Java runtime that provides performance improvements for Java applications by adding an advanced just-in-time (JIT) optimizing compiler. An improved optimization technique is used when converting Java code converted to byte code in a just-in-time method into machine code at the time of execution and executing it. In addition to this, it provides a function to create a native image that can be executed directly, not bytecode, so that it can be executed at runtime without JVM in an ahead-of-time (AOT) method. Optimization based on the pre-analyzed code, not the execution-time optimization used in the just-in-time (JIT) method. It provides quick initial start-up through native image execution, and is useful for Serverless and containers that run fast and start-up immediately without significant execution-time optimization effects. And by providing an environment that can run other languages such as JavaScript, Ruby, and R, it provides the ability to run different languages in the same environment.

  • Improved performance through improved just-in-time (JIT) compiler
    • If you are using Java-based applications, you can use GraalVM Enterprise to improve the performance of your Java applications without any code changes.
    • Accelerating Java performance
  • Fast initial start-up and execution support through Native Image
    • Native Image provides fast startup in Serverless functions and containers, but it must be supported by the development framework you are using. It is supported by MicroNaut, Helidon, Quarkus, etc., and also supported by Spring framework through Spring Native, but it is currently in beta.
    • Announcing Spring Native Beta!
  • Provides the ability to run multiple languages in the same environment
Reference

Permissions for using Java SE and GraalVM in OCI

  • Oracle Cloud Infrastructure services include Java SE subscription and technical support. GraalVM Enterprise is also included in your Java SE subscription. Therefore, GraalVM can be used on the OCI service at no additional cost.

    image-20220427185703767

GraalVM Technical Support

GraalVM is technically supported as part of your Java SE subscription. Experimental function is not recommended for use in operating environment, and technical support is not provided. Multi-language support is partly included. Native Image can be used in operation as an Early Adopter function, however, even if large changes occur in a later version, it may not be compatible with the previous version. See the link below for exact details.



As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 27 Apr 2022