diff --git a/be/src/runtime/mem_tracker.cpp b/be/src/runtime/mem_tracker.cpp index 1428e09cc83b2..2a9e4bb3de77e 100644 --- a/be/src/runtime/mem_tracker.cpp +++ b/be/src/runtime/mem_tracker.cpp @@ -36,6 +36,8 @@ #include +#include "service/backend_options.h" + namespace starrocks { const std::string MemTracker::PEAK_MEMORY_USAGE = "PeakMemoryUsage"; @@ -134,6 +136,7 @@ Status MemTracker::check_mem_limit(const std::string& msg) const { std::string MemTracker::err_msg(const std::string& msg) const { std::stringstream str; str << "Memory of " << label() << " exceed limit. " << msg << " "; + str << "Backend: " << BackendOptions::get_localhost() << ", "; str << "Used: " << consumption() << ", Limit: " << limit() << ". "; switch (type()) { case MemTracker::NO_SET: