Post

Adopting Java 11 in Production

With Java 11 being the next LTS, we finally made the switch.

Steps we followed:

  • Upgraded build toolchain (Maven/Gradle)
  • Verified compatibility of 3rd party libraries
  • Switched from CMS GC to G1GC and later ZGC for select services

Benefits:

  • Better memory handling under G1GC
  • Support for var, HTTP Client API, and modules (experimentally)

Note: Spring Boot 2.1+ works well with Java 11.

This post is licensed under CC BY 4.0 by the author.