High RAM Usage: Python Fast API
farazbangalore
PROOP

a year 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 year 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 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...