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

Graal images are huge #186

Closed
ChadKillingsworth opened this issue Aug 15, 2020 · 6 comments · Fixed by #232
Closed

Graal images are huge #186

ChadKillingsworth opened this issue Aug 15, 2020 · 6 comments · Fixed by #232

Comments

@ChadKillingsworth
Copy link
Collaborator

After #174, the size of the native binary images is unacceptably large (approaching 200 MB).

The issue has been reported to the Graal project: oracle/graal#2756

@concavelenz
Copy link
Contributor

With the normal java build, we are able to see what is contributing by looking at the .jar. Have you run into any similiar tooling for Graal?

@ChadKillingsworth
Copy link
Collaborator Author

I'm not really aware. A quick search found these options: https://gitter.im/graalvm/native-image?at=5bafc470e65a6343365ba56e

@teppeis
Copy link
Contributor

teppeis commented Feb 14, 2021

Any progress?

This is a big problem for my project.
I'm using google-closure-compiler-linux in AWS Lambda for parallel builds, and 250MB is the upper limit of the whole package size after unzipping.
I cannot update Closure Compiler to v20200628+ for the limitation.

@smallshen
Copy link

try use upx
It should shrink 20%

@smallshen
Copy link

https://github.com/upx/upx
On Windows it shrinks 40mb around to 11mb, I can make a pr

@ChadKillingsworth
Copy link
Collaborator Author

I have no experience with upx, but if it works and reduces size I am definitely for it. I'd welcome such a PR.

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 a pull request may close this issue.

4 participants