Thread
#prefect-community
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    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
    Kevin Kho

    Kevin Kho

    9 months ago
    Of course! Thanks for reporting. Do you have more details to share or replicate that I can forward with the team?
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    Replication should just be "prefect orion start" and keep it running for a while. No need to do anything else.
    Kevin Kho

    Kevin Kho

    9 months ago
    Thanks! Will forward to the team
    Michael Adkins

    Michael Adkins

    9 months ago
    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
    ?
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    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
    Michael Adkins

    Michael Adkins

    9 months ago
    👍 This just means that it’s not leaking memory while idle and that requests are causing the issue
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    yup
    Michael Adkins

    Michael Adkins

    9 months ago
    I imagine this is really an issue in FastAPI/uvicorn — there are some reports on Github that appear to be unresolved.
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    I've use FastAPI/uvicorn before, outside of prefect, and haven't noticed memory leaks, but maybe I was lucky in not triggering them.
    Michael Adkins

    Michael Adkins

    9 months ago
    Hey! We’ve dug into this and found the issue. This will be resolved in the next release.
    Wieger Opmeer

    Wieger Opmeer

    9 months ago
    👍