MEMORY MALLOC-STATS
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.
Return value
Section titled “Return value”The text, with \r\n line endings: a bulk string in RESP2, a verbatim string
(txt) in RESP3.
Compatibility
Section titled “Compatibility”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.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.