-
Notifications
You must be signed in to change notification settings - Fork 73
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
JDK-21+ response-time gc profile uses generational zgc #1520
Conversation
Generate changelog in
|
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.
This seems reasonable to me to get a baseline
// https://openjdk.org/jeps/439 | ||
"-XX:+ZGenerational", | ||
// "forces concurrent cycle instead of Full GC on System.gc()" | ||
"-XX:+ExplicitGCInvokesConcurrent"); |
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.
notes for myself:
NUMA
is enabled by default:
https://github.com/openjdk/jdk/blob/a9679acd5c85b88afe827dc55dbe9a78b00c8918/src/hotspot/share/gc/z/zArguments.cpp#L117-L119-XX:+UseDynamicNumberOfGCThreads
is enabled by default-XX:+ClassUnloadingWithConcurrentMark
is not yet supported for ZGC from what I can tell.-XX:+UseStringDeduplication
is available for ZGC in JDK 18+, could enable separately Enable UseStringDeduplication where feasible #1378
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.
based on https://www.chriswhocodes.com/corretto_jdk11_options.html -XX:+ClassUnloadingWithConcurrentMark
defaults to true
(and has since jdk-11, I haven't verified earlier releases).
The zgc documentation suggested that numa support is enabled by default, but turned off if the jvm detects it's not needed, but that UseNUMA
flag overrides this behavior: https://wiki.openjdk.org/display/zgc/Main#Main-EnablingNUMASupport
Released 7.41.0 |
==COMMIT_MSG==
JDK-21+ response-time gc profile uses generational zgc
==COMMIT_MSG==