| 报错 | OOM command not allowed |
|---|---|
| 读命令 | 默认允许 |
| 放行 | CONFIG SET maxmemory-policy 或命令白名单 |
排查
排查
redis-cli INFO memory | Select-String used_memory
redis-cli CONFIG GET maxmemory出现 OOM 报错先看两个数:当前用量与上限,再决定扩容、淘汰还是清数据。
noeviction 达到 maxmemory 后,写命令返回 OOM command not allowed when used memory > maxmemory,读命令不受影响(可配命令级放行)。
| 报错 | OOM command not allowed |
|---|---|
| 读命令 | 默认允许 |
| 放行 | CONFIG SET maxmemory-policy 或命令白名单 |
redis-cli INFO memory | Select-String used_memory
redis-cli CONFIG GET maxmemory