Skip to content

Reduce JVM plugin image sizes by using jlink#2569

Merged
pkwarren merged 1 commit into
mainfrom
pkw/jlink-jvm-plugins
Jun 25, 2026
Merged

Reduce JVM plugin image sizes by using jlink#2569
pkwarren merged 1 commit into
mainfrom
pkw/jlink-jvm-plugins

Conversation

@pkwarren

@pkwarren pkwarren commented Jun 25, 2026

Copy link
Copy Markdown
Member

Use jlink to prepare a smaller JRE containing just what is needed to execute the plugin. After building the 7 plugins locally, the size is reduced across the board by 287mb (compressed) and 869mb (uncompressed).

Runtime Compressed Uncompressed
Full distroless JRE (java25-debian13) 72.7 MB 228.0 MB
jlink runtime (cc-debian13 + minimal modules) 30.0 MB 88.6 MB
Per plugin savings -42.7 MB (-59%) -139.4 MB (-61%)

Use jlink to prepare a smaller JRE containing just what is needed to
execute the plugin. After building the 7 plugins locally, the size is
reduced across the board by 287mb (compressed) and 869mb (uncompressed).

| Runtime | Compressed | Uncompressed |
|---|--:|--:|
| Full distroless JRE (`java25-debian13`) | 72.7 MB | 228.0 MB |
| jlink runtime (`cc-debian13` + minimal modules) | 30.0 MB | 88.6 MB |
| **Saving per plugin** | **−42.7 MB (−59%)** | **−139.4 MB (−61%)** |
@pkwarren pkwarren requested review from DMarby and oliversun9 June 25, 2026 20:31
@pkwarren pkwarren merged commit f324418 into main Jun 25, 2026
8 checks passed
@pkwarren pkwarren deleted the pkw/jlink-jvm-plugins branch June 25, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants