-
-
Notifications
You must be signed in to change notification settings - Fork 779
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
Uvicorn causes linux session crash with out of memory error #759
Comments
From the log it looks like uvicorn was killed. How did this impact the user session? Did Gnome/KDE crash due to memory shortage? If your system runs out of memory, the kernel will start to kill processes. It should start with the largest process (uvicorn in this case), but there are additional criteria that the kernel uses to decide which process to kill. Those criteria are outside of our control. Consider adding more swap space, or use ulimits to restrict the uvicorn process's memory consumption. |
I only copied the uvicorn kill but it killed everything in the session and kicked me back to tty login. Running picom on XFCE.
I mean ok but I've got 32g ram and swap space is 8gb, not really running much otherwise and SDUI runs fine as many times as I want, it seems specifically tied to how long SDUI is running, is that not memory leak behavior? I'll add more swap but I feel like it will still happen if it's a memory leak. |
Sometimes this happens when starting up SDUI, before it's even fully loaded. This particular lockup happens after loading/unloading SDUI several times. Eventually on load it will lock up everything forcing a hard reset or if I'm lucky the session will crash pointing to Uvicorn. |
SDUI/Uvicorn eventually crashes the user's session from OOM error, even while not actively generating images.
journalctl
reports:To Reproduce
Run SDUI for a while, or just leave it sitting.
Expected behavior
Don't crash the user session
Desktop (please complete the following information):
Additional context
seems OOM problems are common with uvicorn:
tiangolo/uvicorn-gunicorn-docker#98
encode/uvicorn#1583
encode/uvicorn#1226
The text was updated successfully, but these errors were encountered: