From 834ad5363cb16d9249e286b57d19efb06f9fe3e1 Mon Sep 17 00:00:00 2001 From: Atharva Sharma Date: Tue, 23 Jul 2024 10:14:53 +0530 Subject: [PATCH] addressed comments Signed-off-by: Atharva Sharma --- .../collectors/telemetry/RTFHeapMetricsCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/performanceanalyzer/collectors/telemetry/RTFHeapMetricsCollector.java b/src/main/java/org/opensearch/performanceanalyzer/collectors/telemetry/RTFHeapMetricsCollector.java index 859e7ad9..e21632f5 100644 --- a/src/main/java/org/opensearch/performanceanalyzer/collectors/telemetry/RTFHeapMetricsCollector.java +++ b/src/main/java/org/opensearch/performanceanalyzer/collectors/telemetry/RTFHeapMetricsCollector.java @@ -130,7 +130,7 @@ private void recordMetrics() { memoryUsage.getUsed(), Tags.create().addTag(memTypeAttributeKey, entry.getKey())); heapMaxTag = Tags.create().addTag(memTypeAttributeKey, entry.getKey()); - heapMaxValue = memoryUsage.getUsed(); + heapMaxValue = memoryUsage.getMax(); } } }