Server stats

Server stats

Memgraph supports multiple queries to get information about the instance that is being queried.

Instance version

To get the version of the instance being queried, run the following query:

SHOW VERSION;

Storage information

Running the following query will return certain information about the storage of the current instance:

SHOW STORAGE INFO;

The result will contain the following fields:

FieldDescription
vertex_countThe number of stored nodes (vertices).
edge_countThe number of stored relationships (edges).
average_degreeThe average number of relationships of a single node.
memory_resThe non-swapped physical RAM memory a task has used, reported by the OS (in B, KiB, MiB, GiB or TiB).
disk_usageThe amount of disk space used by the data directory (in B, KiB, MiB, GiB or TiB).
memory_trackedThe amount of RAM allocated in the system and tracked by Memgraph (in B, KiB, MiB, GiB or TiB).
For more info, check out memory control.
vm_max_map_countThe number of memory-mapped areas that the kernel allows a process to have. If it is unknown, returns -1.
For more info, check out virtual memory section of the docs.
allocation_limitThe current allocation limit set for this instance (in B, KiB, MiB, GiB or TiB).
For more info, check out the memory control.
global_isolation_levelThe current global isolation level.
For more info, check out isolation levels.
session_isolation_levelThe current session isolation level.
next_session_isolation_levelThe current next isolation level.
storage_modeThe current storage mode.
For more info, check out storage modes.

Build information

Running the following query will return certain information about the build type of the current instance:

SHOW BUILD INFO;
FieldDescription
build_typeThe optimization level the instance was built with.