Python: Memory leak debugging

前端 未结 7 1398
误落风尘
误落风尘 2020-12-07 16:45

I have a small multithreaded script running in django and over time its starts using more and more memory. Leaving it for a full day eats about 6GB of RAM and I start to swa

7条回答
  •  旧时难觅i
    2020-12-07 17:39

    Is DEBUG=False in settings.py?

    If not Django will happily store all the SQL queries you make which adds up.

提交回复
热议问题