当前位置:网站首页>redis info命令 memory内存信息说明
redis info命令 memory内存信息说明
2022-06-09 09:22:00 【不与天斗姜大夫】
源文地址 https://www.runoob.com/redis/server-info.html
memory : 内存信息,包含以下域:
- used_memory : 由 Redis 分配器分配的内存总量,以字节(byte)为单位
- used_memory_human : 以人类可读的格式返回 Redis 分配的内存总量
- used_memory_rss : 从操作系统的角度,返回 Redis 已分配的内存总量(俗称常驻集大小)。这个值和 top 、 ps 等命令的输出一致。
- used_memory_peak : Redis 的内存消耗峰值(以字节为单位)
- used_memory_peak_human : 以人类可读的格式返回 Redis 的内存消耗峰值
- used_memory_lua : Lua 引擎所使用的内存大小(以字节为单位)
- mem_fragmentation_ratio : used_memory_rss 和 used_memory 之间的比率
- mem_allocator : 在编译时指定的, Redis 所使用的内存分配器。可以是 libc 、 jemalloc 或者 tcmalloc 。
在理想情况下, used_memory_rss 的值应该只比 used_memory 稍微高一点儿。
当 rss > used ,且两者的值相差较大时,表示存在(内部或外部的)内存碎片。
内存碎片的比率可以通过 mem_fragmentation_ratio 的值看出。
当 used > rss 时,表示 Redis 的部分内存被操作系统换出到交换空间了,在这种情况下,操作可能会产生明显的延迟。
当 Redis 释放内存时,分配器可能会,也可能不会,将内存返还给操作系统。
如果 Redis 释放了内存,却没有将内存返还给操作系统,那么 used_memory 的值可能和操作系统显示的 Redis 内存占用并不一致。
查看 used_memory_peak 的值可以验证这种情况是否发生。
边栏推荐
- 【科技、商业和管理】看剧学创业:《硅谷》第六季第6-7集
- Basic pointer ~ guide you to the introduction pointer
- 倒计时 3 天 | SOFAChannel#28 SOFAArk 类隔离框架设计
- Omit 应用 减少 TS 重复代码
- 了解图数据库neo4j(一)
- What's wrong with Android development today? Is the interview question I asked so difficult?
- Learn about graph database neo4j (I)
- Attachment 17: limited articles on network program interpretation
- NIO BIO AIO
- Linux在线安装一个Neo4j图数据库
猜你喜欢

Sofa weekly | kusion open source, QA this week, contributor this week
![[5机器学习]全网最易懂的决策树(附源码)](/img/cb/815850c5c6ed2b3c20c8ba34caa7d8.png)
[5机器学习]全网最易懂的决策树(附源码)

附十七章 網絡程序解讀限定文章
![[redis learning 13] redis builds master-slave cluster, sentinel cluster and partition cluster](/img/e9/c0911d31dc348e1f1f9c67935ce923.png)
[redis learning 13] redis builds master-slave cluster, sentinel cluster and partition cluster
![Change exchange (boundary protection should work before array access) (if there is no such combination, dp[i] should also be integer.max_value - 1) leetcode 80](/img/9a/f525e1b065d1fd14d490505ad1525a.jpg)
Change exchange (boundary protection should work before array access) (if there is no such combination, dp[i] should also be integer.max_value - 1) leetcode 80

Omit 应用 减少 TS 重复代码

【新手上路常见问答】如何用TensorFlow玩转深度学习?

How to draw a picture gracefully

SOFA Weekly | Kusion 开源啦、本周 QA、本周 Contributor
![[code comment] Doxygen](/img/db/0017e30ef8ff5d9d71a9d02a7ed7cf.png)
[code comment] Doxygen
随机推荐
Write InputStream to file write multipartfile to file
[redis learning 13] redis builds master-slave cluster, sentinel cluster and partition cluster
2022-2028 global online code learning industry research and trend analysis report
2022-2028 global online programming learning platform industry survey and trend analysis report
【新手上路常见问答】关于物联网设计
- Bean method ‘redisConnectionFactory‘ in ‘JedisConnectionConfiguration‘ not loaded because @Conditi
Summary of Android development interview experience and compilation of actual records (must see)
【Android -- 面试】程序员月入过 W 的十大平台
Dotnet core can also coordinate distributed transactions!
How to draw a picture gracefully
Paper understanding [RL - exp replay] - an equivalence between loss functions and non uniform sampling in exp replay
2022-2028 global natural volcanic ash industry research and trend analysis report
【1数据采集】数据爬虫的完整学习路径
初级指针~带你入门指针
Neo4j realizes social recommendation (4)
Draw multiple polygons using canvas
Creation of menu for wechat applet development
2022-2028 global mobile phone jammer industry research and trend analysis report
2022-2028 global UAV detection and jamming system industry survey and trend analysis report
MySQL基础 查询语句