Skip to content

Set higher RAM percentage in Docker container #585

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

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

keynmol
Copy link
Contributor

@keynmol keynmol commented May 12, 2023

On larger Scala/Java projects (I'm using https://github.com/lichess-org/lila it's a very good stress test), SBT's default heap is way too small (1GB), especially if we don't set any concurrency as part of the sbt-sourcegraph plugin (IMO we should)

To give the containers more oomph, we set the special JAVA_TOOL_OPTIONS variable: https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/envvars002.html

  1. Set max RAM percentage to be higher

  2. Use Container support flag: https://www.eclipse.org/openj9/docs/xxusecontainersupport/

    This will adjust the max available RAM accordingly

Test plan

Manual testing on large projects

Verified

This commit was signed with the committer’s verified signature.
woodruffw William Woodruff
@keynmol keynmol marked this pull request as ready for review May 12, 2023 14:09
@keynmol keynmol requested a review from olafurpg May 12, 2023 14:09
@keynmol keynmol merged commit b1386d2 into main May 15, 2023
@keynmol keynmol deleted the set-ram-percentage branch May 15, 2023 12:48
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.

None yet

2 participants