Replies: 4 comments
-
Try not using the reload parameter when starting the server and tell us again. uvicorn main:app --reload |
Beta Was this translation helpful? Give feedback.
-
Ah, yes, without the reload parameter the usage is minimal. Sorry and thanks for a quick feedback. |
Beta Was this translation helpful? Give feedback.
-
Tom of Starlette is very open to taking a PR to make the reload option more efficient. Right now it is brute force checking every 300ms? or so. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help @jorgerpo and @wshayes ! 🍰 🚀 And thanks @hnykda for reporting back and closing the issue. 🎉 |
Beta Was this translation helpful? Give feedback.
-
Hi,
I noticed that even with the very default hello world, uvicorn consumes about ~40% of my 2.5GHz CPU (of single core). Is this normal/expected? From WSGI I am used to values around ~5%. I was able to replicate these on two machines.
Beta Was this translation helpful? Give feedback.
All reactions