High RAM Usage: Python Fast API
farazbangalore
PROOP
2 months 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!
1 Replies
Railway
BOT
2 months 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 • 2 months ago
