OneSizeFitsQuorum commented on code in PR #12332: URL: https://github.com/apache/iotdb/pull/12332#discussion_r1564748002
########## iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/system/SystemMetrics.java: ########## @@ -194,6 +250,15 @@ private void removeSystemMemInfo(AbstractMetricService metricService) { SystemMetric.SYS_COMMITTED_VM_SIZE.toString(), SystemTag.NAME.toString(), SYSTEM); + if (CONFIG.getSystemType() == SystemType.LINUX) { + for (String title : linuxMemoryTitles) { + metricService.remove( + MetricType.GAUGE, + SystemMetric.LINUX_MEMORY_SIZE.toString(), Review Comment: clear LINUX_MEMORY_COUNT too? Or maybe we do not need to records the count? -- 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: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org