I have a Django application that so often gets caught in a memory leak.
I donβt use big data that can overload the memory, in fact the application "eats" the memory gradually (after a week the memory goes from ~ 70 MB to 4 GB), so I suspect that the garbage collector is missing something, I'm not sure although. In addition, it seems that this increase does not depend on the number of requests.
Obvious things like DEBUG=True , leaving open files, etc., do not apply here.
I am using uWSGI 2.0.3 (+ nginx) and Django 1.4.5
I could configure wsgi to restart the server when the memory exceeds a certain limit, but I would not want to do this because this is not a solution.
Are there any well-known situations where the garbage collector "does not do its job properly"? Can he give some code examples?
Is there any uWSGI + Django configuration that can cause this?
python django memory-leaks uwsgi
trinchet
source share