-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-19371. JVM GC Metrics supports ZGC pause time and count #7230
base: trunk
Are you sure you want to change the base?
Conversation
if (gcBean.getName() != null) { | ||
String name = gcBean.getName(); | ||
// JDK-8265136 Skip concurrent phase | ||
if ((name.startsWith("ZGC") && name.endsWith("Cycles"))) { |
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.
a redundant ()
?
💔 -1 overall
This message was automatically generated. |
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.
LGTM.
cc @slfan1989 |
@pan3793 Thank you for inviting me to review the code! I have no issues with this PR, but this hardcoding approach doesn't seem ideal. Is there a better solution we could consider? |
Thanks for your comments. IMO, this is acceptable. The content related to JVM metric is rarely changed. We can also refer to micrometer. |
LGTM. If there are no other issues, we will merge this PR in 2 days. Let's see if any team members have suggestions. |
Description of PR
8265136: ZGC: Expose GarbageCollectorMXBeans for both pauses and cycles
https://bugs.openjdk.org/browse/JDK-8265136
How was this patch tested?
Local testing and production environment verification
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?