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

Add ZGC bean names to support GC stats #26329

Closed
wants to merge 1 commit into from

Conversation

RobbanHoglund
Copy link
Contributor

@RobbanHoglund RobbanHoglund commented May 9, 2024

The ZGC Garbage collector is not recognized since the "ZGC" name does not match the actual name/names. In the metrics it will be named as "unknown". This fix will match the actual ZGC names.

Fixes: N/A

Backport of: N/A

Breaking changes (list specific methods/types/messages):
I renamed these internal sets:
public static final Set YOUNG_GC; -> MINOR_GC
public static final Set OLD_GC; -> MAJOR_GC

Checklist:

  • Labels (Team:, Type:, Source:, Module:) and Milestone set
  • Add Add to Release Notes label if changes should be mentioned in release notes or Not Release Notes content if changes are not relevant for release notes
  • Request reviewers if possible
  • New public APIs have @Nonnull/@Nullable annotations
  • New public APIs have @since tags in Javadoc
  • Send backports/forwardports if fix needs to be applied to past/future releases

@hz-devops-test hz-devops-test added the Source: Community PR or issue was opened by a community user label May 9, 2024
@devOpsHazelcast
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@devOpsHazelcast
Copy link
Collaborator

Can one of the admins verify this patch?

@devOpsHazelcast
Copy link
Collaborator

devOpsHazelcast commented May 9, 2024

CLA assistant check
All committers have signed the CLA.

@devOpsHazelcast
Copy link
Collaborator

Can one of the admins verify this patch?

@RobbanHoglund RobbanHoglund changed the title Add proper ZGC support and renaming of internal set Add proper ZGC support May 9, 2024
@devOpsHazelcast
Copy link
Collaborator

Internal PR hazelcast/hazelcast-mono#1855
Internal message only. Nothing to see here, move along

@fawazghali fawazghali self-assigned this May 17, 2024
@fawazghali fawazghali requested review from frant-hartm, SeriyBg and srknzl and removed request for SeriyBg May 17, 2024 06:48
Copy link
Member

@srknzl srknzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is ok for me. I wonder where we can see the complete list of bean names related to ZGC. I researched and found this other project that added those metrics to their project

micrometer-metrics/micrometer#4258 (comment)

@srknzl
Copy link
Member

srknzl commented May 17, 2024

Also see https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/gc/z/TestGarbageCollectorMXBean.java, maybe source code of jdk is good enough as well

@srknzl srknzl added this to the 5.5.0 milestone May 17, 2024
@frant-hartm frant-hartm changed the title Add proper ZGC support Add ZGC bean names to support GC stats May 17, 2024
@srknzl srknzl closed this May 20, 2024
devOpsHazelcast pushed a commit that referenced this pull request May 20, 2024
Import of #26329

**Original PR description:**

The ZGC Garbage collector is not recognized since the "ZGC" name does
not match the actual name/names. In the metrics it will be named as
"unknown". This fix will match the actual ZGC names.

Imported changes:

- 66a2cdf Add proper ZGC support and
renaming of internal set

Closes #26329

---------

Co-authored-by: Robert Höglund <robban.hoglund@gmail.com>
Co-authored-by: Serkan Özel <serkan.ozel@hazelcast.com>
GitOrigin-RevId: db7d086b7c10b0ef130533dd51680673c9397b5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants