This is an automated email from the ASF dual-hosted git repository.
slfan1989 pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new 36849dd7d44 HADOOP-19371. JVM GC Metrics supports ZGC pause time and
count (#7230) Contributed by cxzl25.
36849dd7d44 is described below
commit 36849dd7d444e263de0810a9b4989bc47f9c4d2e
Author: cxzl25 <[email protected]>
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 <[email protected]>
Reviewed-by: Cheng Pan <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
---
.../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: [email protected]
For additional commands, e-mail: [email protected]