[
https://issues.apache.org/jira/browse/HADOOP-19371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906272#comment-17906272
]
ASF GitHub Bot commented on HADOOP-19371:
-----------------------------------------
pan3793 commented on code in PR #7230:
URL: https://github.com/apache/hadoop/pull/7230#discussion_r1887961917
##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java:
##########
@@ -181,6 +181,13 @@ private void getGcUsage(MetricsRecordBuilder rb) {
long count = 0;
long timeMillis = 0;
for (GarbageCollectorMXBean gcBean : gcBeans) {
+ if (gcBean.getName() != null) {
+ String name = gcBean.getName();
+ // JDK-8265136 Skip concurrent phase
+ if ((name.startsWith("ZGC") && name.endsWith("Cycles"))) {
Review Comment:
a redundant `()`?
> JVM GC Metrics supports ZGC pause time and count
> ------------------------------------------------
>
> Key: HADOOP-19371
> URL: https://issues.apache.org/jira/browse/HADOOP-19371
> Project: Hadoop Common
> Issue Type: Improvement
> Components: common
> Reporter: dzcxzl
> Priority: Minor
> Labels: pull-request-available
>
> 8265136: ZGC: Expose GarbageCollectorMXBeans for both pauses and cycles
> [https://bugs.openjdk.org/browse/JDK-8265136]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]