Description
You can query the memory allocation sampling data of OBServer nodes from the __all_virtual_malloc_sample_info table.
Limitation
The OceanBase Database version must be V4.0.0 or later.
Statement
SELECT
svr_ip,
svr_port,
m.tenant_id,
IFNULL(t.tenant_name, m.tenant_id) tenant_name,
ctx_name,
mod_name,
alloc_count,
alloc_bytes,
back_trace
FROM
__all_virtual_malloc_sample_info m
LEFT JOIN __all_tenant t ON m.tenant_id = t.tenant_id
ORDER BY
alloc_bytes DESC
LIMIT 10