Reduce the size of your Java run-time image @ FOSDEM’25
Severin Gehwolf from Red Hat presented at FOSDEM’25 how to “Reduce the size of your Java run-time image”.
When it comes to the on-disk-size of an 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 one knows how.
In this presentation Severing Gehwolf showed how one can create a custom run-time image for their specific application without the need of the jmods folder otherwise being present in a standard JDK. Severin Gehwolf suggests forgetting about JRE and going 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.

