Java Virtual Machine Configuration

Humio runs on the Java Virtual Machine (JVM). In this section we briefly describe things you should consider when selecting and configuring the JVM for Humio.

Which JVM?

Humio runs on feature version 9 or 11 of a few well known JVM distributions. It may function perfectly well on others, however we recommend one of these:

Feature Level Provider
9 Azul Systems OpenJDK 9 Zulu certified build
9 Oracle OpenJDK 9
9 AdoptOpenJDK.net OpenJDK 9 (HotSpot)
11 Oracle Java SE 11
11 Oracle OpenJDK 11
11 Azul Systems OpenJDK 11 Zulu certified build
11 AdoptOpenJDK.net OpenJDK 11 (HotSpot)

We develop and run Humio using the Azul provided Zulu JVM version 11 and find it to be a stable well maintained OpenJDK distribution.

What about:

  • IBM/OpenJ9 - The OpenJDK build called “OpenJ9” is known not to work properly at this time, we are investigating and hope to include it as a supported JVM in the future.
  • Corretto - Amazon is now providing an OpenJDK distribution called “Corretto” which currently only ships with feature level 8 and is not supported at this time.
  • Azul Zing - While we haven’t tried Zing ourselves our experience with Zulu leads us to believe that it is likely to work and there may be benefits to using their proprietary, commerically supported C4 concurrent, non-generational garbage collector.
  • Oracle Graal - Is an interesting alterntiave C2 HotSpot JIT and native binary compiler for Java programs and potentially other languages as well. It is not yet supported for production use with Humio as it is only available for Java feature level 8. We plan to investigate and support it as it matures and becomes available for Java 11.

Garbage Collection

Here are some sample configurations. We have seen good results running the G1 collector in production here shown with a 10GiB heap. This configuration works on Java 9 or 11.

java -server -Xms10g  -Xmx10g -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC

At this time we recommend using the Garbage First collector in production (G1GC), however as of Java 12 there will be two fully concurrent, non-generational collectors with excellent potential for Humio workloads: * Z Garbage Collector included with most OpenJDK 11 builds and * ShenandoahGC included on RedHat or available for download here.

To use these collectors replace -XX:+UseG1GC with either -XX:+UseZGC or -XX:+UseShenandoahGC and be sure to include -XX:+UnlockExperimentalVMOptions.

Resources