[fix](metric) Fix be core when set enable_system_metrics to false in be (#16646)
when enable_system_metrics is false, we should not use system_metrics any more Co-authored-by: caiconghui1 <caiconghui1@jd.com>
This commit is contained in:
@ -181,7 +181,9 @@ void Daemon::memory_maintenance_thread() {
|
||||
// Refresh allocator memory metrics.
|
||||
#if !defined(ADDRESS_SANITIZER) && !defined(LEAK_SANITIZER) && !defined(THREAD_SANITIZER)
|
||||
doris::MemInfo::refresh_allocator_mem();
|
||||
DorisMetrics::instance()->system_metrics()->update_allocator_metrics();
|
||||
if (config::enable_system_metrics) {
|
||||
DorisMetrics::instance()->system_metrics()->update_allocator_metrics();
|
||||
}
|
||||
#endif
|
||||
doris::MemInfo::refresh_proc_mem_no_allocator_cache();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user