Redis OOM command not allowed when used memory > 'maxmemory'

Redis has exceeded the configured memory limit and cannot execute the command.
  1. Check current memory usage and maxmemory limit: INFO memory
  2. Identify top memory-consuming keys: MEMORY DOCTOR and MEMORY USAGE <key>
  3. Free up memory:
    • Delete unnecessary keys: DEL key1 key2
    • Use EXPIRE on keys to set a TTL if applicable.
  4. Increase maxmemory limit if possible: CONFIG SET maxmemory <new-limit>
  5. If data eviction is applicable, adjust eviction policy: CONFIG SET maxmemory-policy <policy-name>

Master

Redis

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Redis

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid