self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Default Redis setting causes Out of Memory crashes

Open steven-harper-ot opened this issue 1 month ago • 3 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

  1. Have plenty of CPU and RAM (16 cores) - 128gb
  2. Have a busy server
  3. Watch RAM usage by Redis climb to 70% of the total RAM
  4. Other non Redis tasks tip the usage up to 100%
  5. See that the OOM process clears down most of the processes
  6. Find that you can't ssh on to the server, and after reboot; everything is a mess

Expected Result

A busy server can run for multiple hours without infinity growing in RAM

Actual Result

The busy server allows Redis to use most of the Ram, and other processes push it to 100%.

We have capped it at about 40% redis.conf

maxmemory 45gb

I would suggest being able to set this as a sensible number by percentage would be great, and shipping at infinite is bad

maxmemory 0

Product Area

Settings

Link

No response

DSN

No response

Version

25.11.1

steven-harper-ot avatar Dec 05 '25 10:12 steven-harper-ot

ENG-6057

linear[bot] avatar Dec 05 '25 10:12 linear[bot]

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Dec 05 '25 10:12 getsantry[bot]

We have this PR if you want to provide some arguments on why we should merge it https://github.com/getsentry/self-hosted/pull/3907

I personally set it to somewhere on 16GB mark, but that would be horrendous for folks running a standard spec server.

aldy505 avatar Dec 07 '25 02:12 aldy505