← Back to team overview

openjdk team mailing list archive

[Bug 2003820] Re: JLink-generated image is extremely large

 

This bug was fixed in the package openjdk-20 - 20~36ea~us1-0ubuntu2

---------------
openjdk-20 (20~36ea~us1-0ubuntu2) lunar; urgency=medium

  * d/p: drop obsolete patches (LP: #2011653).
    - generated-headers.patch: include is already added by openjdk makefile.
  * d/rules: use --with-debug-symbols=none (LP: #2003820).

 -- Vladimir Petko <vladimir.petko@xxxxxxxxxxxxx>  Thu, 16 Mar 2023
16:59:11 +1300

** Changed in: openjdk-20 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-lts in Ubuntu.
https://bugs.launchpad.net/bugs/2003820

Title:
  JLink-generated image is extremely large

Status in openjdk-17 package in Ubuntu:
  New
Status in openjdk-20 package in Ubuntu:
  Fix Released
Status in openjdk-lts package in Ubuntu:
  New

Bug description:
  Sample project:
  https://github.com/beryx-gist/badass-jlink-example

  clone it and produce a jlink image with

  `./gradlew jlink`

  the image uses 300+ mb
  `
  vladimirp@vladimirp:~/git/rocks/badass-jlink-example$ du -h build/image
  4.0K	build/image/legal/java.naming
  4.0K	build/image/legal/java.logging
  52K	build/image/legal/java.xml
  4.0K	build/image/legal/java.security.sasl
  76K	build/image/legal/java.base
  144K	build/image/legal
  348K	build/image/lib/security
  326M	build/image/lib/server
  292K	build/image/lib/jli
  343M	build/image/lib
  64K	build/image/bin
  16K	build/image/conf/security/policy/limited
  12K	build/image/conf/security/policy/unlimited
  36K	build/image/conf/security/policy
  104K	build/image/conf/security
  120K	build/image/conf
  343M	build/image
  `

  This is caused by
  https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/574997

  Temurin build of openjdk uses --with-native-debug-symbols=none.

  I have validated jmap with openjdk-11 and can confirm that jmap works
  when the jdk is compiled with the setting above.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-17/+bug/2003820/+subscriptions



References