V$OB_MEMSTORE

2025-12-04 07:10:02  Updated

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 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 server.

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 memory occupied by the active MemTable (which may be larger than the actual value), in bytes.
FREEZE_TRIGGER bigint(20) NO The memory size that triggers the freezing of the MemTable, in 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, in bytes.
MEMSTORE_LIMIT bigint(20) NO The memory size limit of the MemTable, in bytes.

Sample query

Query the memory usage of the MemTable of the current tenant on the current server.

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

Contact Us