[Twisted-Python] Twisted client memory leak

Facundo Batista facundobatista at gmail.com
Tue Jan 22 13:40:15 EST 2013


On Tue, Jan 22, 2013 at 2:37 PM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:

> Because having just tested it, I don't see any problem - his example
> code has stable memory usage for both client/server processes, and with
> the client making 1, 100 or 1000 connections/sec, and the debug shows
> protocol and factory instances being freed as I would expect i.e. in a
> timely fashion, not just at process close.
>
> Tested on both:
>
> Python 2.7.3 / Twisted 11.1.0 / Linux 64-bit
> Python 2.6.8 / Twisted 12.2.0 / Linux 64-bit

I tested the original example, with the change of doing a loop each .1
seconds instead 1 second, and it shown a memory growth, with and
without the __del__ in the Factory.

It was using Twisted 12.2.0 under Python 2.7.3, on a Linux 32b. I
measured the memory usage with top.

Regards,

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
Twitter: @facundobatista



More information about the Twisted-Python mailing list