I'm playing around a bit with Orion (2.0a6) and I ...
# ask-community
w
I'm playing around a bit with Orion (2.0a6) and I noticed that the uvicorn server is leaking memory quite badly. Is this something worth reporting?
Something like a megabyte per minute
k
Of course! Thanks for reporting. Do you have more details to share or replicate that I can forward with the team?
upvote 1
w
Replication should just be "prefect orion start" and keep it running for a while. No need to do anything else.
k
Thanks! Will forward to the team
z
Hey @Wieger Opmeer, just want to double check that this is not with an in-memory database? The default is a SQLite file so you would have had to change an environment variable.
Do you also see this with
prefect orion start --no-agent
?
w
this is with the default SQLite db afaik
I'll try with --no-agent
ok, with --no-agent it doesn't leak memory immediately, but opening the dashboard in my browser is enough to start leaking
z
👍 This just means that it’s not leaking memory while idle and that requests are causing the issue
w
yup
z
I imagine this is really an issue in FastAPI/uvicorn — there are some reports on Github that appear to be unresolved.
w
I've use FastAPI/uvicorn before, outside of prefect, and haven't noticed memory leaks, but maybe I was lucky in not triggering them.
z
Hey! We’ve dug into this and found the issue. This will be resolved in the next release.
w
👍