High RAM Usage: Python Fast API

farazbangalore
HOBBYOP

a month ago

I have a python fast API service. I see that the railway metrics is showing RAM always higher than 500MB.

But when I added log statement in my service, it shows 100MB
Python code: print("Memory (MB):", psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2)

This 500MB metric is always consumed irrespective of traffic. I want to know what i am missing here?

Thanks, in advance!

Solved

1 Replies

Railway
BOT

a month ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Status changed to Solved farazbangalore about 1 month ago


Loading...