-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Document default 75% value for GCHeapHardLimitPercent in container environments #50280
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
35c6593
85fec48
f552eb5
d6dd0eb
928a0b7
1b240fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -300,7 +300,7 @@ The following settings apply to all flavors of the GC: | |
|
|
||
| - The heap hard limit is defined as the maximum commit size, in bytes, for the GC heap and GC bookkeeping. | ||
| - This setting only applies to 64-bit computers. | ||
| - If this limit isn't configured but the process is running in a memory-constrained environment, that is, inside a container with a specified memory limit, a default value is set. That default is the greater of 20 MB or 75% of the memory limit on the container. | ||
| - If this limit isn't configured but the process is running in a memory-constrained environment, that is, inside a container with a specified memory limit, a default value is set. That default is the greater of 20 MB or the [heap hard limit percent](#heap-hard-limit-percent) of the memory limit on the container. | ||
agocke marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - This setting is ignored if the [Per-object-heap hard limits](#per-object-heap-hard-limits) are configured. | ||
|
|
||
| | | Setting name | Values | Version introduced | | ||
|
|
@@ -339,7 +339,7 @@ The following settings apply to all flavors of the GC: | |
|
|
||
| ### Heap hard limit percent | ||
|
|
||
| - Specifies the heap hard limit as a percentage of the total physical memory. If the process is running in a memory-constrained environment, that is, inside a container with a specified memory limit, the total physical memory is the memory limit; otherwise it's what's available on the machine. | ||
| - Specifies the heap hard limit as a percentage of the total physical memory. If the process is running in a memory-constrained environment, that is, inside a container with a specified memory limit, the container limit is considered the total physical memory. If in a memory-constrained environment, the default value is 75%. | ||
|
||
| - This setting only applies to 64-bit computers. | ||
| - This setting is ignored if the [Per-object-heap hard limits](#per-object-heap-hard-limits) are configured or the [heap hard limit](#heap-hard-limit) is configured. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "the heap hard limit percent of the memory limit on the container" is ambiguous. "Heap hard limit percent" is a setting name, not a value, so this phrasing suggests using a setting name in a calculation. Consider: "That default is the greater of 20 MB or the default percentage from Heap hard limit percent (75%) applied to the memory limit on the container." This clarifies that it's using the default percentage value from that setting.