How to view redis consumption memory size

Source: Internet
Author: User
Tags redis


Reference: https://jingyan.baidu.com/article/2c8c281dbd079f0008252a0f.html

https://blog.csdn.net/qq_36663951/article/details/78340303

The Redis cache is efficient, but it takes up valuable memory resources in our system, especially when our project is running for a while, and we need to look at how much memory Redis occupies, so you can view it with the "info" command.


After executing the info command, find the memory column and you will be able to see the usage information of the RAM, as shown below:




# Memory

used_memory:13490096//How much memory is consumed in the data (bytes)

How much memory used_memory_human:12.87m//data occupies (with unit, readability)

used_memory_rss:13490096//redis How much memory it takes

used_memory_peak:15301192//Peak memory consumption (bytes)

used_memory_peak_human:14.59m//Peak memory consumption (with unit, readability)

used_memory_lua:31744//lua engine occupies memory size (bytes)

mem_fragmentation_ratio:1.00//Memory fragmentation rate

MEM_ALLOCATOR:LIBC//redis Memory allocator version, specified at compile time. There are 3 kinds of libc, Jemalloc and Tcmalloc.


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.