[Twisted-web] memory leaks

Andrew Bennetts andrew-twisted at puzzling.org
Mon Feb 21 23:51:50 MST 2005

On Tue, Feb 22, 2005 at 11:19:03AM +0600, Andrey Chichak wrote:
> Andrew Bennetts wrote:
> >What version of Twisted? 
> 1.3.0
> >How many hits/day?
> ~650000 hits per 24 hours
> >There was a small leak in the 1.3.0 release... it was fixed in r10970 in
> >SVN.  As a workaround, you can delete twisted/protocols/_c_urlarg.so.  But
> I'll check this.

Ok, this sounds like this leak is at least a large part of that.  Assuming
the average URL length is 40 bytes, that version would leak 26MB in 24
hours, according to the stats you give.  If requested URLs are much longer
(e.g. due to forms using request method GET), it may well account for all of

> >this is purely guesswork, please give us more details!
> len(gc.get_objects()) is ~ 30000, and don't change in time.

This strongly suggests the leak is in a C module somewhere, which is
consistent with the _c_urlarg bug.


More information about the Twisted-web mailing list