This is an automated email from the ASF dual-hosted git repository. slfan1989 pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new ecc4e00145f HADOOP-19371. JVM GC Metrics supports ZGC pause time and count (#7230) Contributed by cxzl25. ecc4e00145f is described below commit ecc4e00145f1699d39b0856920a131cb47a8d0a4 Author: cxzl25 <3898450+cxz...@users.noreply.github.com> AuthorDate: Wed Dec 25 16:48:05 2024 +0800 HADOOP-19371. JVM GC Metrics supports ZGC pause time and count (#7230) Contributed by cxzl25. Reviewed-by: Tao Li <toms...@apache.org> Reviewed-by: Cheng Pan <cheng...@apache.org> Signed-off-by: Shilun Fan <slfan1...@apache.org> --- .../main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java index 19429979a02..89b7829cfb0 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java @@ -181,6 +181,13 @@ public class JvmMetrics implements MetricsSource { 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")) { + continue; + } + } long c = gcBean.getCollectionCount(); long t = gcBean.getCollectionTime(); MetricsInfo[] gcInfo = getGcInfo(gcBean.getName()); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org