Zombie Processes with uvicorn multiple workers shutdown #2512
Unanswered
polizogo67
asked this question in
Potential Issue
Replies: 2 comments 1 reply
-
You can use the uvicorn worker for your multiple processes usage.It is so strange to use the multipleprocessing lib directly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Any Updates on that ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I decides that it would be better to use multiple workers with uvicorn for the scalability of my app.
I observed that every time I shut down the server there is a zombie process hanging on the system.
Ubuntu 20.04.6 LTS
Python 3.11.9
uvicorn 0.32.0
fastapi 0.112.0
After a few restarts I have a bunch of zombie processes that only disappear by restarting the system.
![image](https://private-user-images.githubusercontent.com/58054696/386326432-56416a82-5dfb-4bf1-8491-af6ab2fca8eb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Mzk5MjQsIm5iZiI6MTczOTQzOTYyNCwicGF0aCI6Ii81ODA1NDY5Ni8zODYzMjY0MzItNTY0MTZhODItNWRmYi00YmYxLTg0OTEtYWY2YWIyZmNhOGViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA5NDAyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhMTA0Y2VlNjA4MGRlYTdhNTE5ODUyNWEwYjcyMDQ1NTlkNzYzMDI0ZmQ1ZWRmZTRjZDJiNTFiZjgyMWY5OWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IqnwgT4wiXQ1Jts6p7-qFEO4KjKeFVVw8JMtGpl2tLs)
It seems like a serious issue for production environments.
Beta Was this translation helpful? Give feedback.
All reactions