<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV></DIV>
<DIV>I suspect it might be your code. On Twisted 2.5 (with patched epoll bug <A href="http://twistedmatrix.com/trac/ticket/2809">http://twistedmatrix.com/trac/ticket/2809</A>&nbsp;) we have reactors that run for 3-4 months without restart, that do not consume more than 150MB RSS with 8000+ concurrent connections.<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Matthew Glubb &lt;matt@madebykite.com&gt;<BR>To: Twisted general discussion &lt;twisted-python@twistedmatrix.com&gt;<BR>Sent: Saturday, April 12, 2008 1:53:32 PM<BR>Subject: [Twisted-Python] Epoll Memory Issues<BR><BR>Hi All,<BR><BR>First of all, I'd like to offer a belated thanks for Twisted and&nbsp; <BR>congratulations on releasing version 8.<BR><BR>I posted about a year ago about memory issues I was having with&nbsp; <BR>Twisted and the epoll reactor. I have recently put a simple proxy&nbsp; <BR>server based on Twisted in to production and have been running a live&nbsp; <BR>test on a single host for between 300 and 400 concurrent users. The&nbsp; <BR>server gradually consumes memory to a point where I have to start&nbsp; <BR>thinking about the experience of my users (the server starts&nbsp; <BR>swapping) and restart the process. I
 have been watching this&nbsp; <BR>behaviour for the last 10 days and in the meantime have been going&nbsp; <BR>through my code with a fine tooth comb, looking for and testing for&nbsp; <BR>possible memory leaks. I found a few minor ones, but the memory leaks&nbsp; <BR>continue.<BR><BR>Today, out of desperation, I switched the reactor from epoll to&nbsp; <BR>select. Guess what? No more memory leak.<BR><BR>My environment is Linux 2.6, Python 2.5.2, Twisted 8.0.1, twistd. I&nbsp; <BR>was wondering whether anyone could cast any light on this matter? I&nbsp; <BR>am pretty sure that this isn't an issue specific to my code but I&nbsp; <BR>would be interested to hear if anyone else has experienced similar&nbsp; <BR>problems. I would like to be able to switch back to epoll for obvious&nbsp; <BR>reasons, but at the moment, I am not confident in running the Twisted&nbsp; <BR>epoll reactor.<BR><BR>Regards,<BR><BR><BR>Matt<BR><BR>&nbsp;&nbsp;&nbsp; <BR><BR>Matthew
 Glubb<BR>Technical Partner<BR><BR>email: <A href="mailto:matthew.glubb@madebykite.com" ymailto="mailto:matthew.glubb@madebykite.com">matthew.glubb@madebykite.com</A><BR>phone: 44 (0) 7715 754017<BR>skype: mglubb<BR><BR>Kite<BR><A href="http://madebykite.com/" target=_blank>http://madebykite.com</A><BR><BR>--<BR>GPG: 96FF DE0E 0B7B 37F0 7F8D C54C E285 3D8F 5625 9244<BR><BR><BR>_______________________________________________<BR>Twisted-Python mailing list<BR><A href="mailto:Twisted-Python@twistedmatrix.com" ymailto="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</A><BR><A href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target=_blank>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</A><BR></DIV><BR></DIV></div></body></html>