<p>You should check your Redis server's eviction policy, which describes what Redis should do when it runs out of memory: <a href="https://docs.redis.com/latest/rs/databases/memory-performance/eviction-policy/" rel="nofollow noreferrer">https://docs.redis.com/latest/rs/databases/memory-performance/eviction-policy/</a></p>
<p>Most Redis servers use <code>allkeys-lru</code> by default, which means it will removes the least recently used (oldest) keys to free up memory for new ones.</p>

CC BY-SA 4.0
2024-01-17T19:05:35.583Z
Thanks Brad, it was on volatile-lru.  I'll see if this fixes it!
rudtek
CC BY-SA 4.0
2024-01-15T23:33:49.827Z
2024-01-15T23:33:49.827Z
Brad Bell
<p>I uploaded a new site (migrated) to a new server. 3 times now I've had my redis maxout memory.  This causes my site to show an error 500.  When I flush the redris the site goes back up immediately.  I can't seem to find what is the issue though.  Where would I start looking to address it</p>

<craft3><error>
Why does my redis keep shutting my site down
# Why does my redis keep shutting my site down

(Asked by: username_0 on 2024-01-09)

I uploaded a new site (migrated) to a new server. 3 times now I've had my redis maxout memory. This causes my site to show an error 500. When I flush the redris the site goes back up immediately. I can't seem to find what is the issue though. Where would I start looking to address it

**Tags:** craft3, error

---

## 1 answers

### Answer by username_1 on 2024-01-15. Score: 1 | Accepted answer

You should check your Redis server's eviction policy, which describes what Redis should do when it runs out of memory: <https://docs.redis.com/latest/rs/databases/memory-performance/eviction-policy/>

Most Redis servers use `allkeys-lru` by default, which means it will removes the least recently used (oldest) keys to free up memory for new ones.

> **Comments:**
> **username_0**: Thanks Brad, it was on volatile-lru.  I'll see if this fixes it!  

---

