Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentry web: slow page loading time #3013

Open
vanyakosmos opened this issue May 2, 2024 · 6 comments
Open

sentry web: slow page loading time #3013

vanyakosmos opened this issue May 2, 2024 · 6 comments

Comments

@vanyakosmos
Copy link

Self-Hosted Version

23.6.1

CPU Architecture

x86_64

Docker Version

24.0.5

Docker Compose Version

1.29.2

Steps to Reproduce

Open any sentry page

Expected Result

Fast page load

Actual Result

Slow page load, and sometimes it can just stuck indefinitely. Everything that goes to web service is suffering: emails loading, static files loading, initial page html loading.

My server has 6 cpus and 32gb RAM. I configured sentry web to use 9 uwsgi workers. Traffic is pretty moderate, only 8gb of memory is used and cpus are not overloaded.

At the time of "testing" I was probably the only person in the company who accessed sentry web. Problems occur at somewhat random time, one moment everything is fine, and the next one everything is slow as hell. If I open 5 tabs at the same time then everything will open veeery slowly (if ever).

How to debug something like this? At first glance everything should be fine...
Postgres works fine and some endpoints that do not use it are also lagging (eg static files).

Event ID

No response

@hubertdeng123
Copy link
Member

Hi there, thanks for writing in. Unfortunately it is hard to debug this problem without additional information. Is there any logs that may be of use in your web service?

@vanyakosmos
Copy link
Author

mainly access logs and some pydantic warnings, no error:

Screenshot 2024-05-06 at 09 25 33

in general page loading looks like this (requests are sorted by response time):

Screenshot 2024-05-06 at 09 28 43

@azaslavsky
Copy link
Contributor

Can you check CPU, memory, and network usage during these episodes? I would imagine some resource is being saturated.

@vanyakosmos
Copy link
Author

this is what I see after opening 5 tabs at the same time:
Screenshot 2024-05-08 at 10 43 30

  • single uwgi worker is doing all the job without parallelization
  • redis ate 20gb of memory
  • relay workers are also underutilized (it is strange but unrelated to the current issue)

right now I have an even bigger machine (with enough memory, which might have been a problem in a previous case), but the lags are still the same:

Screenshot 2024-05-08 at 19 12 57

@azaslavsky
Copy link
Contributor

Have you tried setting a memory limit for redis, a la #2262?

@getsantry
Copy link

getsantry bot commented May 30, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Waiting for: Community
Status: No status
Development

No branches or pull requests

3 participants