Simple Flask App Memory Usage

mearxl
HOBBYOP

10 months ago

Hi,

I’m running a simple, very low-traffic Flask app on Railway and noticed that memory usage seems unusually high, even in an idle state. Here’s a quick summary of the app’s functionality:

  • Fetches data from a Google Sheet every 10 minutes.

  • Hosts a one-page website with a file upload form.

  • Syncs uploaded files (~20 per week, ~100 MB each) to Dropbox via API.

Despite this relatively lightweight workload, the app’s idle memory usage consistently hovers around 500–600 MB, with occasional spikes to 800–900 MB during file uploads or API interactions.

I’m not a seasoned dev, but this feels a little excessive to me. Is there something I might be overlooking, or could this be a platform-related behavior? Any guidance would be greatly appreciated!

Thanks in advance!

1 Replies

10 months ago

Hello,

Not platform related behavior, your app is indeed using that much memory, as for why, I'm sorry but we have no way of telling you, similarly to how your power company can tell you how much power you are using, but they wouldn't be able to tell you what used that power.

Sorry we couldn't help here, but we have no observability into what your code does or doesn't do.

Best,
Brody


Loading...