Hmm… This seems more like a problem related to C or the operating system than Python…
Since I’m a Windows user, I don’t really know much about Linux issues…
My view is that your latest test shows two different phenomena :
- The machine is still healthy at the system level right now.
- The Uvicorn process is retaining memory across requests.
Those are not the same…