-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 of CLI application is failing with less than 32 GB of virtual memory #8476
Comments
Hello @munishchouhan, Thank you for reporting this issue, I will try to reproduce and get back to you soon. |
hi @solaanan If you have any update in this issue, please share |
Hello @munishchouhan, we apologize for the delay, we are still investigating the issue, but in the meantime can you verify if the issue still persists using the latest release Oracle GraalVM 24.0.0 for JDK 22? |
Thanks for raising this ticket, @munishchouhan! It seems you ran into a current limitation of the compressed references feature that Oracle GraalVM provides for the default Serial GC. We are aware of this problem and will fix this soon. In the meantime, there are two ways you can work around this:
Hope this helps! |
@fniephaus thanks a lot, I will check out these options |
using g1gc solves the problem, closing it now |
@munishchouhan , this is only about an address range that is reserved ahead of time, in general the occupied physical memory will be a small fraction (depending on the application's behavior). Where does this limit come from? The referenced build logs are no longer available. |
@peter-hofer here is the original issue |
@munishchouhan Thanks. Yes, restricting virtual memory will trigger this. But why restrict virtual memory in the first place? It is just an abstract concept, a table of address ranges. There is no potential shortage unlike with physical memory. It makes more sense to restrict the resident set size. |
@peter-hofer This issue came from a virtual machine with low physical memory. Virtual memory was restricted to reproduce the issue in any machine. Please take a look at this comment seqeralabs/wave-cli#46 (comment) |
@munishchouhan you can use |
Describe the issue
Our CLI native-image is failing when there is less than 32 GB of virtual memory
Steps to reproduce the issue
Please include both build steps as well as run steps
Describe GraalVM and your environment:
More details
Build logs:
https://github.com/seqeralabs/wave-cli/actions/runs/8005072271/job/21863704006
Source code of application:
https://github.com/seqeralabs/wave-cli/
we have already set the heap size:
https://github.com/seqeralabs/wave-cli/blob/b47f31f54c64aa8d1f1b2d1d20443d939e3c9eee/app/build.gradle#L86-L89
Error:
The text was updated successfully, but these errors were encountered: