[Twisted-web] memory leaks

Andrey Chichak chch at kit.tomsk.ru
Mon Feb 21 22:19:03 MST 2005


Andrew Bennetts wrote:

> On Tue, Feb 22, 2005 at 10:14:56AM +0600, Andrey Chichak wrote:
> 
>>Good day!
>>
>>I've partialy migrated my site from php to twisted-web and now under 
>>high load a memory size occupied by server raises from 12Mb to 130Mb 
>>during 1 day.
>>
>>I need help !!!!
> 
> 
> What version of Twisted? 

1.3.0

> What sort of application are you running in twisted-web? 

webchat

> 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.

> this is purely guesswork, please give us more details!

len(gc.get_objects()) is ~ 30000, and don't change in time.

> -Andrew.

/usr/local/lib/python2.3/site-packages/twisted/web/twcgi.py:81: 
exceptions.DeprecationWarning: IPv4Address.__getitem__ is deprecated. 
Use attributes instead.

> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Andrey Chichak



More information about the Twisted-web mailing list