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

Adjust the JVM options to heal the Native build on CI #4623

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .jvmopts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-Dfile.encoding=UTF8
-Xms1G
-Xmx5G
-XX:ReservedCodeCacheSize=500M
-XX:+TieredCompilation
-Xms2G
-Xmx8G
Comment on lines +2 to +3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. GitHub recently upgraded their runners so we have 16GB memory (I think the old limit was 7GB). We can't give it all to the JVM because Native (and JS) run their test suites as a separate process.

https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

-Xss4m
-XX:ReservedCodeCacheSize=512m
-XX:MaxMetaspaceSize=512M
-XX:+UseParallelGC
-XX:+TieredCompilation
-XX:+UseAdaptiveSizePolicy