O'Reilly logo

Redis 4.x Cookbook by Zuofei Wang, Pengcheng Huang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works...

INFO MEMORY is the most widely used command to obtain the memory usage of the whole Redis instance. Here is the meaning of each metric returned by this command:

  • used_memory: Total number of bytes allocated by Redis using its allocator
  • used_memory_human: Human readable representation of the previous value
  • used_memory_rss: Number of bytes that Redis allocated, as seen by the operating system
  • used_memory_rss_human: Human readable representation of previous value
  • used_memory_peak: Peak memory consumed by Redis (in bytes)
  • used_memory_peak_human: Human readable representation of previous value
  • used_memory_peak_perc: (used_memory/used_memory_peak)*100%
  • used_memory_overhead: All the memory overhead used by Redis internally to maintain ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required