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

Upgrade docker container to openjdk 17 #318

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Upgrade docker container to openjdk 17 #318

merged 1 commit into from
Jul 9, 2024

Conversation

remvee
Copy link
Collaborator

@remvee remvee commented Jul 8, 2024

To support UseContainerSupport (set by default) and reliably use
MaxRAMPercentage.

When running in a (docker) container use the memory limit of the runtime
environment / cgroup and set environment variable JAVA_TOOL_OPTIONS to
-XX:MaxRAMPercentage=75 to make sure the JVM uses at least 75% of the
allocated memory. Note that 75% is a safe setting.

To support `UseContainerSupport` (set by default) and reliably use
`MaxRAMPercentage`.

When running in a (docker) container use the memory limit of the runtime
environment / cgroup and set environment variable `JAVA_TOOL_OPTIONS` to
`-XX:MaxRAMPercentage=75` to make sure the JVM uses at least 75% of the
allocated memory.  Note that 75% is a safe setting.
@remvee remvee force-pushed the jvm-memory-settings branch from 24736a3 to ad45f64 Compare July 8, 2024 14:58
@remvee remvee requested review from mdemare and joodie July 8, 2024 14:58
Copy link
Contributor

@joodie joodie left a comment

Choose a reason for hiding this comment

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

Fine

@remvee remvee merged commit 81f744e into main Jul 9, 2024
5 checks passed
@remvee remvee deleted the jvm-memory-settings branch July 9, 2024 08:33
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.

2 participants