-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OCPBUG 6952: Modified 'understanding how to override JVM max heap size' section #68617
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?
Conversation
f7326ef
to
0c308bb
Compare
b0f0353
to
3b63bf1
Compare
Thanks for the review @lyman9966. |
@lyman9966 If everything looks fine, can I move forward with the further process? And can you please add LGTM, once the review is finished? |
/lgtm |
New changes are detected. LGTM label has been removed. |
/label peer-review-needed |
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.
Few things, apart from the comments, that need attention:
- The preview link needs to be updated.
- The indentation of the whole section needs to be fixed.
- IIUC, memory is generally addressed with Gi in docs. Kindly verify with SME on the units and update according to doc standards.
@bscott-rh ptal
* If the container memory limit is set and the experimental options are | ||
supported by the JVM, set `-XX:+UnlockExperimentalVMOptions | ||
-XX:+UseCGroupMemoryLimitForHeap`. | ||
Currently, on bare metal or VM setups, the OpenJDK's default heap value is 25%, 1/4th of the compute node’s memory. However, within containers using cgroups detection (v1 and v2 for JDK 11/17), Xmx was set as 50% of the max memory resource limits by default. In ubi9 - RHEL 9 images, the default allocation is 80%(set via -XX:MaxRAMPercentage), leaving 20% for native use. It is therefore *essential* to |
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.
Few questions that the content should reflect:
- How are default values xmx related to the heap value?
- if xmx was set to 50%, what is it now? Question 1 might address this.
- Why do we have the earlier Xmx value mentioned? We should document only the current behaviour of the product.
If everything is related to the heap, then this would need rewording to make it more readable.
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.
Added 1 small comment in addition to Shubha's feedback
29b9563
to
0359a7b
Compare
/remove-lifecycle stale Coming up to a year since this was opened, how are we doing? |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Why hasn't this moved in a while? Seems a shame getting everything reviewed and then let it go stale. |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
/remove-lifecycle rotten |
@jmtd: The In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
It would still be good if this could go in. Existing doc is very outdated. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
@subhtk: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Version(s): 4.12+
Issue: OCPBUG 6952
Link to docs preview: Understanding how to override the JVM maximum heap size
QE review:
Additional information: