Home > Backend Development > PHP Tutorial > How to check the memory size occupied by redis

How to check the memory size occupied by redis

小云云
Release: 2023-03-21 16:26:02
Original
5847 people have browsed it

This article mainly shares with you the method code of how to check the memory size occupied by redis. I hope it can help you.

How to check the memory size occupied by redis
redis-cli
auth password
info

# Memory
used_memory:13490096 //数据占用了多少内存(字节)
used_memory_human:12.87M //数据占用了多少内存(带单位的,可读性好)
used_memory_rss:13490096  //redis占用了多少内存
used_memory_peak:15301192 //占用内存的峰值(字节)
used_memory_peak_human:14.59M //占用内存的峰值(带单位的,可读性好)
used_memory_lua:31744  //lua引擎所占用的内存大小(字节)
mem_fragmentation_ratio:1.00  //内存碎片率
mem_allocator:libc //redis内存分配器版本,在编译时指定的。有libc、jemalloc、tcmalloc这3种。
Copy after login

Related recommendations:

Analysis of memory occupied by ordered sets and lists in Redis

The above is the detailed content of How to check the memory size occupied by redis. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template