Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Native image generation with Docker section misses a tip #12

Open
pagidas opened this issue Aug 10, 2020 · 0 comments
Open

Native image generation with Docker section misses a tip #12

pagidas opened this issue Aug 10, 2020 · 0 comments

Comments

@pagidas
Copy link

pagidas commented Aug 10, 2020

Preventing java.lang.OutOfMemoryError errors

Problem: When I tried to compile a native-image for GraalVM using a Dockerfile, I realised it took a long time to process, until it finally blew up with a java.lang.OutOfMemoryError

Solution: From what I understand, it is likely the case that the Docker engine doesn't have enough memory as resource to use in order to complete this compilation. By default, it comes with 2GB; which, reading through stackoverflow, is not enough. Setting it from 9GB to 12GB solved it for me.

I think this information would be a helpfull small addition in the docs for people with not much experience.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant