Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

MEMORY MALLOC-STATS

Last updated
MEMORY MALLOC-STATS
Group
Server
Arity
2 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

MEMORY MALLOC-STATS returns a short text report: a heading line, then three name:value lines in bytes.

Line Meaning
allocated Memory in use now (used_memory in INFO).
peak_allocated Highest memory use since the server started.
resident Memory the process holds (used_memory_rss).

For a full breakdown use MEMORY STATS.

The text, with \r\n line endings: a bulk string in RESP2, a verbatim string (txt) in RESP3.

Redis 7 and Valkey 8 return the memory allocator’s own detailed statistics, whose format depends on the allocator. HotKV returns only the three figures above, so scripts that parse Redis’s output need adjusting.

MEMORY STATS, INFO