Reset CurrentMetrics::MemoryTracking periodically to the process RSS

This commit is contained in:
Azat Khuzhin 2020-07-08 00:19:46 +03:00
parent 68ca3b7aec
commit 6e695809e4

View File

@ -208,6 +208,7 @@ void AsynchronousMetrics::update()
/// Otherwise it might be calculated incorrectly - it can include a "drift" of memory amount.
/// See https://github.com/ClickHouse/ClickHouse/issues/10293
total_memory_tracker.set(data.resident);
CurrentMetrics::set(CurrentMetrics::MemoryTracking, data.resident);
}
#endif