Note
The view GV$SERVER_MEMSTORE was renamed to GV$OB_MEMSTORE starting from V4.0.0. In V4.0.0 and later, you must use the new view name GV$OB_MEMSTORE to query. Using the old view name GV$SERVER_MEMSTORE will result in an error.
Purpose
This view displays the memory usage of MemTables for all tenants on all servers.
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 size of the active MemTable (may be larger than actual), in bytes. |
| FREEZE_TRIGGER | NUMBER(38) | NO | The memory size at which the MemTable is frozen, in bytes. |
| FREEZE_CNT | NUMBER(38) | NO | The number of times the MemTable has been frozen. |
| MEMSTORE_USED | NUMBER(38) | NO | The total memory size currently used by the MemTable, in bytes. |
| MEMSTORE_LIMIT | NUMBER(38) | NO | The memory size limit for the MemTable, in bytes. |
Sample query
Query the memory usage of MemTables for all servers in the current tenant.
obclient [SYS]> SELECT * FROM SYS.GV$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
Query the memory usage of MemTables for tenants on the current node: V$OB_MEMSTORE
Query the detailed information about MemTables for all partitions on all nodes: GV$OB_MEMSTORE_INFO
