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

uWSGI hangs sometimes #3566

Closed
j-manu opened this issue Nov 23, 2021 · 3 comments · Fixed by #3883
Closed

uWSGI hangs sometimes #3566

j-manu opened this issue Nov 23, 2021 · 3 comments · Fixed by #3883

Comments

@j-manu
Copy link

j-manu commented Nov 23, 2021

Description

uWSGI worker hangs sometimes after respawning. See WID 4 below with RSS 0 and VSZ 0.

image

Steps to Reproduce

Unfortunately, couldn't replicate reliably by load testing.

Additional details

Self hosted KPI version 2.021.45b
Sentry not enabled

This seems similar to kobotoolbox/kobocat#377 & DataDog/dd-trace-py#491

Why not set lazy-apps = true in uwsgi.ini ?

@noliveleger
Copy link
Contributor

Hello @j-manu,
We were able to reproduce the problem with low settings and lots of requests.
According to our tests, it does seem to fix the problem with lazy-apps = true. Unfortunately, it also increases the resources footprint. Especially, when you have a lots of workers.
We'll continue to investigate.

@j-manu
Copy link
Author

j-manu commented Jun 16, 2022

@noliveleger What do you mean by "low settings"?

@noliveleger
Copy link
Contributor

With kobo-install:

Number of uWSGI workers to start?
[1]:
Maximum uWSGI workers?
[2]:
Maximum number of requests per worker?
[256]:
Stop spawning workers if uWSGI memory use exceeds this many MB:
[128]:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants