Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance layer includes chunky runner.jar file #505

Open
cmdjulian opened this issue Aug 18, 2024 · 0 comments
Open

performance layer includes chunky runner.jar file #505

cmdjulian opened this issue Aug 18, 2024 · 0 comments

Comments

@cmdjulian
Copy link

cmdjulian commented Aug 18, 2024

Expected Behaviour

Not quite sure if this even is a bug or a limitation I'm simply not aware of. When building an image with the new spring boot support for cds which shipped with 3.3, the image is generated correctly and works as expected. I was just wondering why the image gets so big. In my case the has a size of roughly 650MB. Without cds it is "just" 400MB. After diging a bit I found out there is an additional launcher jar which gets contributed to the 'Performance' layer. This jar is quite big with 120MB. It seems like it is not relvant for runtime, but for generating the cds training run. Is there a specific reason this gets included in the final image? It feels like a waste of space. Roughly 20% of the image storage requirements are from this.
That the application layers contains because of the jsa file for the cds data much more content is expected, having the performance layer do so too, is not to me.
I used the dive tool to visualize the images content.

grafik
grafik

Current Behaviour

jar is included within the performance image layer of the final image

Possible Solution

Is the jar archive strictly necessary or can it be omitted?

Steps to Reproduce

Build any image for a Spring Boot app setting BP_JVM_CDS_ENABLED=true

Motivations

I think one is expecting the smallest possible image when using the tiny builder

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

No branches or pull requests

1 participant