interface MemoryStats {
    active_defrag_running: string;
    allocator_active: string;
    allocator_allocated: string;
    allocator_frag_bytes: string;
    allocator_frag_ratio: string;
    allocator_resident: string;
    allocator_rss_bytes: string;
    allocator_rss_ratio: string;
    errorParsing?: string;
    lazyfree_pending_objects: string;
    lazyfreed_objects: string;
    maxmemory: string;
    maxmemory_human: string;
    maxmemory_policy: string;
    mem_allocator: string;
    mem_aof_buffer: string;
    mem_clients_normal: string;
    mem_clients_slaves: string;
    mem_cluster_links: string;
    mem_fragmentation_bytes: string;
    mem_fragmentation_ratio: string;
    mem_not_counted_for_evict: string;
    mem_replication_backlog: string;
    mem_total_replication_buffers: string;
    rss_overhead_bytes: string;
    rss_overhead_ratio: string;
    total_system_memory: string;
    total_system_memory_human: string;
    used_memory: string;
    used_memory_dataset: string;
    used_memory_dataset_perc: string;
    used_memory_human: string;
    used_memory_lua: string;
    used_memory_lua_human: string;
    used_memory_overhead: string;
    used_memory_peak: string;
    used_memory_peak_human: string;
    used_memory_peak_perc: string;
    used_memory_rss: string;
    used_memory_rss_human: string;
    used_memory_scripts: string;
    used_memory_scripts_human: string;
    used_memory_startup: string;
}

Properties

active_defrag_running: string

When activedefrag is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize

allocator_active: string

Total bytes in the allocator active pages, this includes external-fragmentation.

allocator_allocated: string

Total bytes allocated form the allocator, including internal-fragmentation. Normally the same as used_memory

allocator_frag_bytes: string

Delta between allocator_active and allocator_allocated. See note about mem_fragmentation_bytes.

allocator_frag_ratio: string

Ratio between allocator_active and allocator_allocated. This is the true (external) fragmentation metric (not mem_fragmentation_ratio).

allocator_resident: string

Total bytes resident (RSS) in the allocator, this includes pages that can be released to the OS (by MEMORY PURGE, or just waiting)

allocator_rss_bytes: string

Delta between allocator_resident and allocator_active

allocator_rss_ratio: string

Ratio between allocator_resident and allocator_active. This usually indicates pages that the allocator can and probably will soon release back to the OS

errorParsing?: string

Error parsing message

lazyfree_pending_objects: string

The number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option)

lazyfreed_objects: string

The number of objects that have been lazy freed.

maxmemory: string

The value of the maxmemory configuration directive

maxmemory_human: string

Human readable representation of previous value

maxmemory_policy: string

The value of the maxmemory-policy configuration directive

mem_allocator: string

Memory allocator, chosen at compile time.

mem_aof_buffer: string

Transient memory used for AOF and AOF rewrite buffers

mem_clients_normal: string

Memory used by normal clients

mem_clients_slaves: string

Memory used by replica clients - Starting Redis 7.0, replica buffers share memory with the replication backlog, so this field can show 0 when replicas don't trigger an increase of memory usage

mem_cluster_links: string

Memory used by links to peers on the cluster bus when cluster mode is enabled.

mem_fragmentation_bytes: string

Delta between used_memory_rss and used_memory. Note that when the total fragmentation bytes is low (few megabytes), a high ratio (e.g. 1.5 and above) is not an indication of an issue

mem_fragmentation_ratio: string

Ratio between used_memory_rss and used_memory. Note that this doesn't only includes fragmentation, but also other process overheads (see the allocator_* metrics), and also overheads like code, shared libraries, stack, etc.

mem_not_counted_for_evict: string

Used memory that's not counted for key eviction. This is basically transient replica and AOF buffers

mem_replication_backlog: string

Memory used by replication backlog

mem_total_replication_buffers: string

Total memory consumed for replication buffers - Added in Redis 7.0.

rss_overhead_bytes: string

Delta between used_memory_rss (the process RSS) and allocator_resident

rss_overhead_ratio: string

Ratio between used_memory_rss (the process RSS) and allocator_resident. This includes RSS overheads that are not allocator or heap related

total_system_memory: string

The total amount of memory that the Redis host has

total_system_memory_human: string

Human readable representation of previous value

used_memory: string

Total number of bytes allocated by Redis using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc)

used_memory_dataset: string

The size in bytes of the dataset (used_memory_overhead subtracted from used_memory)

used_memory_dataset_perc: string

The percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup)

used_memory_human: string

Human readable representation of previous value

used_memory_lua: string

Number of bytes used by the Lua engine

used_memory_lua_human: string

Human readable representation of previous value

used_memory_overhead: string

The sum in bytes of all overheads that the server allocated for managing its internal data structures

used_memory_peak: string

Peak memory consumed by Redis (in bytes)

used_memory_peak_human: string

Human readable representation of previous value

used_memory_peak_perc: string

The percentage of used_memory_peak out of used_memory

used_memory_rss: string

Number of bytes that Redis allocated as seen by the operating system (a.k.a resident set size). This is the number reported by tools such as top(1) and ps(1)

used_memory_rss_human: string

Human readable representation of previous value

used_memory_scripts: string

Number of bytes used by cached Lua scripts

used_memory_scripts_human: string

Human readable representation of previous value

used_memory_startup: string

Initial amount of memory consumed by Redis at startup in bytes