[Twisted-Python] memory leaks

Jean-Paul Calderone exarkun at twistedmatrix.com
Sun Dec 4 10:50:59 MST 2016


On Sun, Dec 4, 2016 at 12:50 AM, Glyph Lefkowitz <glyph at twistedmatrix.com>
wrote:

> Following up on a Stack Overflow question from some time ago,
> http://stackoverflow.com/questions/40604545/twisted-
> using-connectprotocol-to-connect-endpoint-cause-memory-leak?noredirect=1#
> comment68573508_40604545 since the submitter added a minimal reproducer,
> I used Heappy https://pypi.org/project/guppy/ to look at memory sizing,
> and seeing large numbers of Logger instances and type objects leaking when
> using client endpoints.  It was not immediately obvious to me where the
> leak is occurring though, as I was careful to clean up the Deferred results
> and not leave them in a failure state.
>
> I am hoping that I can entice someone else to diagnose this far enough to
> actually file a bug :-).
>
>
Answered.  I didn't file a bug, I'll let someone else with ideas about
twisted.logger think about what exactly the bug is.

Jean-Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20161204/9b75c588/attachment-0002.html>


More information about the Twisted-Python mailing list