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

Take a lot of RAM & CPU resources, and lead to unable to connect to server via SSH

Open realjerrytang opened this issue 1 year ago • 2 comments

Self-Hosted Version

24.5.0

CPU Architecture

Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz

Docker Version

26.1.3

Docker Compose Version

v2.27.0

Steps to Reproduce

  1. git clone https://github.com/getsentry/self-hosted.git
  2. mv ./self-hosted ./sentry
  3. git checkout 24.5.0
  4. ./install.sh

Expected Result

work correctly with 4core + 16RAM and take reasonable CPU and RAM resources

Actual Result

wait about half of a day, the consumption of RAM and CPU raised to extremely hight (4 core + 16 RAM) and no longer able to connect to server via SSH, have to reboot server, but the issue will appear again 1716993971929

Event ID

No response

realjerrytang avatar May 29 '24 14:05 realjerrytang

Unfortunately, there's not something we can do for you in the immediate term. We are working on an errors-only version of self-hosted Sentry, which should drastically reduce the amount of RAM and CPU resources that are being used though.

hubertdeng123 avatar May 30 '24 21:05 hubertdeng123

Unfortunately, there's not something we can do for you in the immediate term. We are working on an errors-only version of self-hosted Sentry, which should drastically reduce the amount of RAM and CPU resources that are being used though.

that sounds awesome and thank you again, at last can we know what specific version you are now working on, so that i can apply this version to fix issues from my side

realjerrytang avatar May 31 '24 01:05 realjerrytang

Hello,

Sorry, but the documentation mentioned:

[Recommended system resource](https://develop.sentry.dev/self-hosted/#recommended-system-resource)

Depending on your usage, required system resource to run Sentry may varies. Minimum system specification for running Sentry looks like this:

2 CPU cores
4 GB RAM

Why sentry consume 16GB of ram ?

How to make it consume 4GB of RAM ?

Best regards,

henri9813 avatar Aug 20 '24 20:08 henri9813

Sentry consumes that amount of RAM due to its services required to run. We're not looking to decrease this for the default Sentry install. However, if you'd like to use errors only self-hosted, you can do so. https://develop.sentry.dev/self-hosted/#errors-only-self-hosted-sentry

hubertdeng123 avatar Aug 28 '24 19:08 hubertdeng123