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. Using the original view name V$SERVER_MEMSTORE will result in an error.
Purpose
This view displays the memory usage of MemTables for all tenants on the current server.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | VARCHAR2(46) | NO | The IP address of the server. |
| SVR_PORT | NUMBER(38) | NO | The port number of the server. |
| TENANT_ID | NUMBER(38) | NO | The tenant ID. |
| ACTIVE_SPAN | NUMBER(38) | NO | The estimated memory size occupied by active MemTables (may be larger than actual), in bytes. |
| FREEZE_TRIGGER | NUMBER(38) | NO | The memory size that triggers MemTable freezing, in bytes. |
| FREEZE_CNT | NUMBER(38) | NO | The number of times MemTable has been frozen. |
| MEMSTORE_USED | NUMBER(38) | NO | The total memory size currently used by MemTables, in bytes. |
| MEMSTORE_LIMIT | NUMBER(38) | NO | The memory size limit for MemTables, in bytes. |
Sample query
Query the memory usage of MemTables for all servers in the current tenant.
obclient [SYS]> SELECT * FROM SYS.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 | 1004 | 25165824 | 603982068 | 0 | 25165824 | 2684354550 |
+----------------+----------+-----------+-------------+----------------+------------+---------------+----------------+
1 row in set
References
Displays the MemStore statistics on all nodes: GV$OB_MEMSTORE
Displays the detailed information of MemTables for all partitions on the current node: V$OB_MEMSTORE_INFO
