Uvicorn >=0.30 possibly have a worse RAM and CPU management than previous versions #2492
Unanswered
korcky
asked this question in
Potential Issue
Replies: 1 comment
-
I ran into an issue with version 0.32.0, which shows "child processes died" on both Windows and Alpine Docker, but it works perfectly on macOS. In contrast, version 0.29.0 operates normally across Windows, Linux, macOS, and Alpine Docker. |
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
-
It seems like "New multiprocess manager (#2183)" introduced in Version 0.30.0 have a significantly worse performance.
The setup on which I see such an effect is a FastAPI app that runs via uvicorn (8 workers) in a pod in Kubernetes. The uvicorn was updated from
0.29.0
to0.32.0
, the comparison between CPU and RAM usage can be seen below (solid line is0.32.0
, doted is0.29.0
):Besides bumping the version of uvicorn, there were small changes to the service itself and version bumps of other modules but they should be insignificant to the CPU/RAM usage.
And I guess this might be related to this discussion (#2450):
1Gb
to2GB
), we see the same log once an hour nowDoes anyone see a similar behaviour?
Beta Was this translation helpful? Give feedback.
All reactions