You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Preventing java.lang.OutOfMemoryError errors
Problem: When I tried to compile a
native-image
forGraalVM
using aDockerfile
, I realised it took a long time to process, until it finally blew up with ajava.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.
The text was updated successfully, but these errors were encountered: