Skip to main content

Reduce the size of your Java run-time image

UA2.118 (Henriot) | Day 1 | 14:30 - 14:55 | Speakers: Severin Gehwolf

Reduce the size of your Java run-time image
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

When it comes to the on-disk-size of your OpenJDK installation it becomes apparent that certain files take up a large part of the entire Java Development Kit (JDK) installation. It can seem that certain files are monolithic and aren't possible to make smaller. Yet, they can be smaller if you know how.

In this talk we show how you can create a custom run-time image for your specific application without the need of the jmods folder otherwise being present in a standard JDK. Forget about JRE and go all-in on custom run-time images. The best thing about it is that - due to JEP 493 - this will no longer need JMOD files of the JDK to be present.

Tune in to hear more about using jlink from a JDK without a jmods directory and what new opportunities this allows.

Attachments

Speakers

Severin Gehwolf

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.