How to check the memory occupied by redis

http://www.daixiaorui.com/read/209.html

# Memory

used_memory:13490096 //How much memory (bytes) the data occupies

used_memory_human: 12.87M //How much memory the data occupies (with units, good readability)

used_memory_rss:13490096 //How much memory is occupied by redis

used_memory_peak:15301192 //Peak memory usage (bytes)

used_memory_peak_human: 14.59M //peak memory occupied (with units, good readability)

used_memory_lua:31744 //The memory size (bytes) occupied by the lua engine

mem_fragmentation_ratio:1.00 //Memory fragmentation rate

mem_allocator:libc //redis memory allocator version, specified at compile time. There are three kinds of libc, jemalloc, and tcmalloc.

 

If the data volume of a project is relatively large, it is necessary to use info frequently to check the memory usage, so as to make the project more stable.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326378999&siteId=291194637