Note
This view is available starting with V4.0.0.
Purpose
This view displays the memory usage of the current tenant on the current OBServer node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| HOLD | bigint(20) | NO | The amount of memory used by the tenant, in bytes. |
| FREE | bigint(21) | NO | The amount of memory available to the tenant, in bytes. |
Sample query
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
