我在 memcache 上安装了一个安装程序,我想在生产环境中使用它,但是当我运行了一些测试时,似乎 memcache 不会释放内存,即使它用完了所有分配的内存,我也登录了并运行了flush_all命令,但对象仍在缓存中。这是一些测试的输出
memcached-tool
memcache-top v0.6 (default port: 11211, color: on, refresh: 3 seconds)
INSTANCE USAGE HIT % CONN TIME EVICT/s READ/s WRITE/s
127.0.0.1:11211 427.1% 0.0% 18 1.4ms 0.0 244 261.0K
AVERAGE: 427.1% 0.0% 18 1.4ms 0.0 244 261.0K
TOTAL: 4.3MB/ 1.0MB 18 1.4ms 0.0 244 261.0K
Run Code Online (Sandbox Code Playgroud)
memcached-tool 127.0.0.1:11211 display
No Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM
1 560B 4s 1 1872 yes 0 0 15488
2 704B 32s 1 559 no 0 0 0
3 …Run Code Online (Sandbox Code Playgroud)