Note
The view V$SERVER_MEMSTORE was renamed to V$OB_MEMSTORE starting from V4.0.0. In V4.0.0 and later versions, you must use the new view name V$OB_MEMSTORE to query data. Using the old view name V$SERVER_MEMSTORE will result in an error.
Purpose
This view displays the MemStore statistics of the current tenant on the current OBServer node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| ACTIVE_SPAN | bigint(20) | NO | The estimated size of the active MemTable (may be larger than the actual value). Unit: bytes. |
| FREEZE_TRIGGER | bigint(20) | NO | The memory size at which the MemTable is frozen. Unit: bytes. |
| FREEZE_CNT | bigint(20) | NO | The number of times the MemTable has been frozen. |
| MEMSTORE_USED | bigint(20) | NO | The total memory size currently used by the MemTable. Unit: bytes. |
| MEMSTORE_LIMIT | bigint(20) | NO | The memory size limit for the MemTable. Unit: bytes. |
Sample query
Query the memory usage of the MemTable on the current node for the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_MEMSTORE;
The query result is as follows:
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
| SVR_IP | SVR_PORT | TENANT_ID | ACTIVE_SPAN | FREEZE_TRIGGER | FREEZE_CNT | MEMSTORE_USED | MEMSTORE_LIMIT |
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
| 172.xx.xxx.xxx | 2882 | 1002 | 62914560 | 603982068 | 0 | 62914560 | 2684354550 |
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
1 row in set
References
Displays the MemStore statistics on all nodes: GV$OB_MEMSTORE
Displays the detailed information of the MemTable for all partitions on the current node: V$OB_MEMSTORE_INFO
