Skip to content

Commit

Permalink
[Enhancement] Print BE/CN IP in memory tracker errMsg (StarRocks#49335)
Browse files Browse the repository at this point in the history
Signed-off-by: srlch <[email protected]>
  • Loading branch information
srlch authored Aug 2, 2024
1 parent 0a4de8b commit bf401b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/runtime/mem_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

#include <utility>

#include "service/backend_options.h"

namespace starrocks {

const std::string MemTracker::PEAK_MEMORY_USAGE = "PeakMemoryUsage";
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bf401b0

Please sign in to comment.