-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native-image] java out of memory error #920
Comments
@hugsyy how much memory do you give to your docker container? You will need at least a few GB to build a |
@cstancu Thank you, I changed docker memory limit and it worked. |
@cstancu I can successfully build native image now but when I run it I get this error:
I made a slight change to the Dockefile btw:
|
Yeah, the NPE looks like a bug. As a temporary workaround, can you please move the
|
Also, I don't think you need |
And for the record, I managed to build this image by giving Docker 6GB. 4GB didn't work (got OOM). |
@tzezula can you please take a look at the NPE above? Thanks! |
@shelajev Thanks! Workaround worked for me too. |
The NPE is a bug, I will fix it. |
I'm running out of memory attempting to generate a native image on Circle CI (containers have 4G). It looks like memory is hard-coded for the native-image server to something like 6G? It appears to accept -J options, but if I try to give it |
The NPE is fixed for rc12: 62872b7 |
Thank you, @tzezula! |
@eraserhd there is no trick to it. That seems to be a bug, we'll look into it. You can run with |
This is not a bug. In server-mode we allow 80% of the memory that is physically available on the machine to be used for image building (if needed), thus we ignore any Xmx hits (either provided by |
Hello,
I am trying to build a native image with following Dockefile:
And I get java out of memory error. The java program is from demo examples here - https://github.com/graalvm/graalvm-demos/blob/master/native-list-dir/ExtListDir.java
The text was updated successfully, but these errors were encountered: