JLink-generated image is extremely large
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-17 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
openjdk-20 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
openjdk-lts (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Sample project:
https:/
clone it and produce a jlink image with
`./gradlew jlink`
the image uses 300+ mb
`
vladimirp@
4.0K build/image/
4.0K build/image/
52K build/image/
4.0K build/image/
76K build/image/
144K build/image/legal
348K build/image/
326M build/image/
292K build/image/lib/jli
343M build/image/lib
64K build/image/bin
16K build/image/
12K build/image/
36K build/image/
104K build/image/
120K build/image/conf
343M build/image
`
This is caused by https:/
Temurin build of openjdk uses --with-
I have validated jmap with openjdk-11 and can confirm that jmap works when the jdk is compiled with the setting above.
Related branches
- Steve Langasek (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 27 lines (+3/-2)2 files modifieddebian/changelog (+2/-1)
debian/rules (+1/-1)
- Steve Langasek (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 27 lines (+3/-2)2 files modifieddebian/changelog (+2/-1)
debian/rules (+1/-1)
- Steve Langasek (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 30 lines (+3/-2)2 files modifieddebian/changelog (+2/-1)
debian/rules (+1/-1)
- Dan Bungert (community): Approve
- Steve Langasek: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 31 lines (+3/-2)2 files modifieddebian/changelog (+2/-1)
debian/rules (+1/-1)
This bug was fixed in the package openjdk-20 - 20~36ea~ us1-0ubuntu2
--------------- us1-0ubuntu2) lunar; urgency=medium
openjdk-20 (20~36ea~
* d/p: drop obsolete patches (LP: #2011653). headers. patch: include is already added by openjdk makefile. debug-symbols= none (LP: #2003820).
- generated-
* d/rules: use --with-
-- Vladimir Petko <email address hidden> Thu, 16 Mar 2023 16:59:11 +1300