Skip to content
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

change gc to g1gc for linux distribution of cli #63

Conversation

munishchouhan
Copy link
Member

@munishchouhan munishchouhan commented Apr 8, 2024

This PR will solve the virtual memory issue of cli #46

Native-image provided two solutions:

  1. use g1gc
  2. use -H:-UseCompressedReferences. This is only available in graalvm enterprise edition.

This PR will change the GC to G1 when the target machine is Linux.

Note: After enabling g1gc, the size of binary is increased by 11.6 MB.

munish.chouhan@Munishs-MacBook-Pro wave-cli-test % ls -ltr
-rw-r--r--@ 1 munish.chouhan  staff  61200224 Apr  5 13:47 wave
-rw-r--r--@ 1 munish.chouhan  staff  49582000 Apr  8 15:41 wave-1.2.0-linux-x86_64

Signed-off-by: munishchouhan <[email protected]>
Signed-off-by: munishchouhan <[email protected]>
@munishchouhan munishchouhan linked an issue Apr 8, 2024 that may be closed by this pull request
@munishchouhan munishchouhan self-assigned this Apr 8, 2024
@munishchouhan munishchouhan merged commit 9decb2a into master Apr 8, 2024
13 checks passed
@munishchouhan munishchouhan deleted the 46-failed-to-create-the-main-isolate-error-large-memory-req branch April 8, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Failed to create the main Isolate" error - Large Memory Req
2 participants