Note
This view is available starting with V4.0.0.
Overview
Displays the memory usage of the current tenant on the current OBServer node.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID |
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port Number |
| HOLD | bigint(20) | NO | Tenant Used Memory, in bytes |
| FREE | bigint(21) | NO | Remaining memory of the tenant, in bytes |
Sample query
You can query the memory usage of the current tenant on the current node.
obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_TENANT_MEMORY;
The query result is as follows:
+-----------+----------------+----------+-----------+------------+
| TENANT_ID | SVR_IP | SVR_PORT | HOLD | FREE |
+-----------+----------------+----------+-----------+------------+
| 1002 | 172.xx.xxx.xxx | 2882 | 725221376 | 4643487744 |
+-----------+----------------+----------+-----------+------------+
1 row in set
