Answer the question
In order to leave comments, you need to log in
Django eating RAM?
There is a django application. Requests come to it, and it eats more and more RAM. Moreover, after the end of the requests, the RAM does not almost return. After dozens of such requests, it eats up all the RAM on the server. And the application stops.
Tell me, please, is this normal or not? and if not, how to fix it and how to auto-restart the application?
After shutting down the django application in the terminal it says Killed
Answer the question
In order to leave comments, you need to log in
This is not normal, it looks like you have a memory leak. You can try to set up all sorts of profilers, or just cut off pieces of code in parts and see at what point it stops flowing. Of course, it is necessary to debug this with DEBUG=False.
Restarting is a crutch, but sometimes it helps. If restarting, then at least there should be 10,000 requests, if you have all the memory leaked in 10 requests, then restarting will not help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question