How to debug the error “OOM command not allowed when used memory > 'maxmemory'” in Redis?

前端 未结 7 1502
囚心锁ツ
囚心锁ツ 2020-12-28 13:58

I\'m getting \"OOM command not allowed\" when trying to set a key, maxmemory is set to 500M with maxmemory-policy \"volatile-lru\", I\'m setting T

7条回答
  •  萌比男神i
    2020-12-28 14:45

    Memory is controlled in the config. Thus, your instance limited as it says. You can either look in your redis.conf or from the CLI Tool issue "config get maxmemory" to get the limit.

    If you manage this Redis instance, you'll need to consult and adjust the config file. Usually looked for in /etc/redis.conf or /etc/redis/redis.conf.

    If you are using a Redis provider you will need to get with them about increasing your limit.

提交回复
热议问题