简体   繁体   中英

Redis: Free used_memory_rss without restarting redis

Over time the used_memory_rss keeps increasing. I understand the reason behind it getting filled (its how memory allocators work). However I need a solution to free it without restarting redis.

Is there any way to do the same?

in redis 4.0 there is a new command

MEMORY PURGE

that will defragment memory and release it to the OS.

also see

MEMORY HELP

可以在线参考这个问题compact memory use

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM