6、手动清理其实还可以手动清理,可以采用如下命令
127.0.0.1:6379> memory purge
7、相关参数配置说明内存清理相关参数如下,可以使用config get的方式查看对应的值 。
# Enabled active defragmentation# 碎片整理总开关# activedefrag yes# Minimum amount of fragmentation waste to start active defrag# 内存碎片达到多少的时候开启整理active-defrag-ignore-bytes 100mb# Minimum percentage of fragmentation to start active defrag# 碎片率达到百分之多少开启整理active-defrag-threshold-lower 10# Maximum percentage of fragmentation at which we use maximum effort# 碎片率小余多少百分比开启整理active-defrag-threshold-upper 100# Minimal effort for defrag in CPU percentageactive-defrag-cycle-min 25# Maximal effort for defrag in CPU percentageactive-defrag-cycle-max 75
至此,Redis4.0.14版本的内存碎片清理就测试完成了 。
推荐阅读
- 我们一起聊聊DBA的自我修养
- 高频率聊天会产生恋爱错觉吗? 高频率聊天会产生恋爱错觉吗
- 上班无聊的时候干什么好 上班无聊的时候干什么
- 谢娜|网曝谢娜出轨肖战并怀孕,张杰晒聊天记录宣布离婚,粉丝火速辟谣
- 通辽赶集网招聘求职 通辽聊天室
- 主动聊天第一句说啥跟男的 主动聊天第一句说啥
- 交外国朋友的聊天软件 交外国朋友
- 男生向女生表白聊天记录?高情商女人微信撩男生的聊天记录?
- 撒贝宁|撒贝宁透露自己的婚姻无望:无聊,怀疑他和李白的恩爱是装不成了
- |大咖聊五铢收藏之玩转郡国五铢钱——如何鉴别郡国五铢钱