To view Redis memory footprint

Source: Internet
Author: User
Tags memory usage readable redis
Redis cache is efficient, but it will take up the valuable memory resources in our system, especially when our project has been running for some time, we need to see how much memory the Redis occupies, then we can use the "info" command to view.
After executing the info command, find the memory column, and you can see the memory usage information, as shown in the following figure:

# Memory

used_memory:13490096//Data consumption of memory (bytes)

used_memory_human:12.87m//Data consumption of memory (with unit, readable good)

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

used_memory_peak:15301192//Memory Peak (bytes)

used_memory_peak_human:14.59m//Occupancy peak memory (with unit, readable)

used_memory_lua:31744 the memory size of the//lua engine (bytes)

mem_fragmentation_ratio:1.00//Memory fragmentation rate

MEM_ALLOCATOR:LIBC//redis The memory allocator version, specified at compile time. There are libc, Jemalloc, tcmalloc these 3 kinds.

If a project has a large amount of data, it is necessary to use info to see the amount of memory used, so that the project can be more stable
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.