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

[improve](fe) Add -XX:NewRatio=2 explicitly in JAVA_OPT #34965

Draft
wants to merge 1 commit into
base: branch-2.0
Choose a base branch
from

Conversation

w41ter
Copy link
Contributor

@w41ter w41ter commented May 16, 2024

Proposed changes

Issue Number: close #xxx

According to https://bugs.openjdk.org/browse/JDK-8153578, the default NewRatio is ignored when UseConcMarkSweepGC is used as the GC algorithm, and the value of CMSYoungGenPerWorker is used to calculate the young gen size.

And they said: "The details of this CMS behavior should be documented and the CR closed as not-a-bug."

The workaround is:
To set -XX:NewRatio=2 explicitly if we are using -XX:+UseConcMarkSweepGC

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

According to https://bugs.openjdk.org/browse/JDK-8153578, the default
NewRatio is ignored when UseConcMarkSweepGC is used as the GC algorithm,
and the value of CMSYoungGenPerWorker is used to calculate the young gen
size.

And they said: "The details of this CMS behavior should be documented and
the CR closed as not-a-bug."

The workaround is:
    To set -XX:NewRatio=2 explicitly if we are using -XX:+UseConcMarkSweepGC
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@w41ter
Copy link
Contributor Author

w41ter commented May 16, 2024

run buildall

@w41ter
Copy link
Contributor Author

w41ter commented Jun 3, 2024

Close via #35276.

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