← Back to team overview

openjdk team mailing list archive

[Bug 2003820] [NEW] JLink-generated image is extremely large

 

Public bug reported:

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.

** Affects: openjdk-17 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-20 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: openjdk-lts (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: fr-3281 lunar

** Tags added: lunar

-- 
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:
  New
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



Follow ups