From 1da0bc1265349830b6a01a2797d95e38682785d2 Mon Sep 17 00:00:00 2001 From: codesigner Date: Wed, 28 Dec 2022 13:48:37 +0800 Subject: [PATCH] fix wrong untracked_reserved_memory_mb --- src/common/memory/MemoryUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/memory/MemoryUtils.cpp b/src/common/memory/MemoryUtils.cpp index 7f8eae60a86..0d35b160d4e 100644 --- a/src/common/memory/MemoryUtils.cpp +++ b/src/common/memory/MemoryUtils.cpp @@ -114,7 +114,7 @@ StatusOr MemoryUtils::hitsHighWatermark() { #if ENABLE_JEMALLOC // set MemoryStats limit (MemoryTracker track-able memory) memory::MemoryStats::instance().setLimit( - (total - FLAGS_memory_tracker_untracked_reserved_memory_mb) * + (total - FLAGS_memory_tracker_untracked_reserved_memory_mb * 1024 * 1024) * FLAGS_memory_tracker_limit_ratio); // purge if enabled