limit memory of tenant 500
This commit is contained in:
@ -27,8 +27,6 @@ namespace oceanbase
|
||||
using namespace common;
|
||||
namespace lib
|
||||
{
|
||||
|
||||
bool ObTenantMemoryMgr::error_log_when_tenant_500_oversize = false;
|
||||
ObTenantMemoryMgr::ObTenantMemoryMgr()
|
||||
: cache_washer_(NULL), tenant_id_(common::OB_INVALID_ID),
|
||||
limit_(INT64_MAX), sum_hold_(0), rpc_hold_(0), cache_hold_(0),
|
||||
@ -267,12 +265,6 @@ bool ObTenantMemoryMgr::update_hold(const int64_t size, const uint64_t ctx_id,
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
if (OB_UNLIKELY(error_log_when_tenant_500_oversize &&
|
||||
OB_SERVER_TENANT_ID == tenant_id_ &&
|
||||
sum_hold_ > (1LL<<30))) {
|
||||
LOG_ERROR_RET(OB_ERROR, "the hold memory of tenant_500 is over the reserved memory",
|
||||
K_(sum_hold));
|
||||
}
|
||||
}
|
||||
if (!updated) {
|
||||
auto &afc = g_alloc_failed_ctx();
|
||||
|
||||
@ -31,8 +31,6 @@ class ObTenantMemoryMgr
|
||||
public:
|
||||
static const int64_t LARGE_REQUEST_EXTRA_MB_COUNT = 2;
|
||||
static const int64_t ALIGN_SIZE = static_cast<int64_t>(INTACT_ACHUNK_SIZE);
|
||||
static bool error_log_when_tenant_500_oversize;
|
||||
|
||||
ObTenantMemoryMgr();
|
||||
ObTenantMemoryMgr(const uint64_t tenant_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user