Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-17T19:05:35.583Z
Answers.Text: Thanks Brad, it was on volatile-lru.  I'll see if this fixes it!
Answers.UserDisplayName: rudtek
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-15T23:33:49.827Z
Answers.LastActivityDate: 2024-01-15T23:33:49.827Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Tags: <craft3><error>
Title: Why does my redis keep shutting my site down
ThreadText: # 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 username_1, it was on volatile-lru.  I'll see if this fixes it!  
  
  ---
  
  