title: Django memory leak: possible causes?
body: <p>I've a Django application that every so often is getting into memory leak.</p>
  
  <p>I am not using large data that could overload the memory, in fact the application 'eats' memory incrementally (in a week the memory goes from ~ 70 MB to 4GB), that is why I suspect the garbage collector is missing something, I am not sure though. Also, it seems as this increment is not dependant of the number of requests.</p>
  
  <p>Obvious things like <code>DEBUG=True</code>, leaving open files, etc... no apply here.</p>
  
  <p>I'm using <code>uWSGI 2.0.3</code> (+ nginx) and <code>Django 1.4.5</code></p>
  
  <p>I could set up <code>wsgi</code> so that restart the server when the memory exceeds certain limit, but I wouldn't like to do that since that is not a solution really.</p>
  
  <p>Are there any well know situations where the garbage collector "doesn't do its work properly"? Could it provide some code examples?</p>
  
  <p>Is there any configuration of uWSGI + Django that could cause this?</p>