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