redis memory_error ai_generated true

OOM command not allowed when used memory > maxmemory

ID: redis/maxmemory-reached

Also available as: JSON · Markdown
80%Fix Rate
85%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
7 active

Root Cause

Redis memory usage exceeded maxmemory limit.

generic

Workarounds

  1. 90% success Set appropriate eviction policy: allkeys-lru or volatile-ttl
  2. 88% success Add TTL to all keys and increase maxmemory if needed

Dead Ends

Common approaches that don't work:

  1. Remove maxmemory limit entirely 85% fail

    OOM killer may kill Redis process

  2. Set maxmemory-policy noeviction 72% fail

    Writes fail, app breaks