gyfora commented on code in PR #23554:
URL: https://github.com/apache/flink/pull/23554#discussion_r1366778054
##########
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/util/MetricUtils.java:
##########
@@ -222,16 +224,32 @@ private static void
instantiateClassLoaderMetrics(MetricGroup metrics) {
metrics.<Long, Gauge<Long>>gauge("ClassesUnloaded",
mxBean::getUnloadedClassCount);
}
- private static void instantiateGarbageCollectorMetrics(MetricGroup
metrics) {
- List<GarbageCollectorMXBean> garbageCollectors =
- ManagementFactory.getGarbageCollectorMXBeans();
-
+ @VisibleForTesting
+ public static void instantiateGarbageCollectorMetrics(
Review Comment:
makes sense I will fix this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]