Python: Memory leak debugging

前端 未结 7 1396
误落风尘
误落风尘 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条回答
  •  青春惊慌失措
    2020-12-07 17:40

    I think you should use different tools. Apparently, the statistics you got is only about GC objects (i.e. objects which may participate in cycles); most notably, it lacks strings.

    I recommend to use Pympler; this should provide you with more detailed statistics.

提交回复
热议问题