-
Notifications
You must be signed in to change notification settings - Fork 3
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
"Failed to create the main Isolate" error - Large Memory Req #46
Comments
Works in my test
Are you using a Linux VM on macOS? |
Thanks for taking a look, @pditommaso . That pushed me to dig deeper and I found this when doing
Our head node doesn't allow "large" memory allocations. When submitted to the farm, then it works
|
Interesting. Therefore it's a memory issue. It turns out that even when compiled to a native binary image, the usual logic for Java heap apply:
But this does not make sense for a CLI app. We need to make a patch to constraint the max heap to a few hundred MBs Tagging @munishchouhan for visibility |
This should have been addressed in version 1.1.2 |
Unfortunately it doesn't :( I'm still getting the error.
|
Oki. I've run some more tests and the error only shows on certain machines. wave CLI seems to be working fine on other Ubuntu 22.04 machines here. Let me raise a ticket internally to see if there are known differences between those machines. |
Kernel version can be useful |
Thanks for the pointer. Failing on these machines
Working on these
No correlation with the kernel versions. But clear differences between clusters / VMs. There must be a difference in the way they've been set up |
yeah, I'd ask to investigate a bit more on your side |
Hello ! We made some progress on this. We found that the CLI needs at least 33,603,492 kbytes (~32 GB) of virtual memory to function, as demonstrated in the example below:
even though the "Maximum resident set size (kbytes)" is reported by Something in the CLI is requesting vast amounts of virtual memory but not using it. |
Thanks for reporting. We'll investigate this |
@muffato thanks for the reproducer, I can reproduce this AWS EC2 free tier with slightly less memory:
I will investigate further and post the updates here |
I have raised this issue with GraalVM native-image team also |
@muffato I received a reply from native-image. This is a known problem when using serial GC. They have provided a couple of options. We will try them and let you know |
I have tried with g1gc and it is working
@muffato you can download the binary from the artifact section for this action https://github.com/seqeralabs/wave-cli/actions/runs/8570788276 and give it a try |
It works 🎉 ! |
Following #29 (comment) I went to an Ubuntu 22.04 machine and got a different error
(the binary is the one attached to the v1.1.1 release https://github.com/seqeralabs/wave-cli/releases/tag/v1.1.1 )
The text was updated successfully, but these errors were encountered: