[Twisted-Python] twisted eat the memory

Cary Hull cary.hull at gmail.com
Mon Dec 15 12:43:02 EST 2008

What version of Python are you using? 2.4 and below have problems
releasing memory back to the OS. Since Twisted apps are normally long
running Python daemons they can be more prone to memory leaks. You
need to be aware of how objects are garbage collected in Python and
rework your code if necessary.

Twisted itself should not be the source of problem.

An interesting article on the subject:


On Mon, Dec 15, 2008 at 12:31 PM, Muaaz Hussain
<muaazhussain128 at gmail.com> wrote:
> I wrote web application on twisted and my application read from ulogd daemon
> and push the output to the client browser using AJAX  .also I have another
> application displaying ethernets traffic using AJAX.
> but after some minutes the twisted process in the server eat the memory and
> the OOM-killer of the linux will kill the twisted process.
> are there any solution to make the twisted release the memory .
> note: my ram is 256mb
> --
> Muaaz Osman Hussain
> IT Researcher
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

01100011 01100001 01110010 01111001

More information about the Twisted-Python mailing list