<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">Hi guys, I have started having this problem a few
weeks ago and it happens about once a week after which I have to
restart my Twisted based server to function again. It seems to be
happening when I make RPC calls using twisted.web.xmlrpc.Proxy. I have
reason to believe that I am either running out of file handles or
connection limits. I have up-sized my connection limits and ulimit -n&nbsp;
gives me 9000.<br>
<br>
I receive less than 30 connections though so there must be some kind of
leak. The error I'm getting is the following:<br>
<font face="Courier New, Courier, monospace"><br>
&nbsp;Unhandled Error<br>
&nbsp;&nbsp;&nbsp; Traceback (most recent call last):<br>
&nbsp;&nbsp;&nbsp; &nbsp; File
"/usr/lib/python2.6/dist-packages/twisted/application/app.py", line
445, in startReactor<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.config, oldstdout, oldstderr, self.profiler, reactor)<br>
&nbsp;&nbsp;&nbsp; &nbsp; File
"/usr/lib/python2.6/dist-packages/twisted/application/app.py", line
348, in runReactorWithLogging<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; reactor.run()<br>
&nbsp;&nbsp;&nbsp; &nbsp; File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py",
line 1128, in run<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.mainLoop()<br>
&nbsp;&nbsp;&nbsp; &nbsp; File "/usr/lib/python2.6/dist-packages/twisted/internet/base.py",
line 1140, in mainLoop<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self.doIteration(t)<br>
&nbsp;&nbsp;&nbsp; --- &lt;exception caught here&gt; ---<br>
&nbsp;&nbsp;&nbsp; &nbsp; File
"/usr/lib/python2.6/dist-packages/twisted/internet/selectreactor.py",
line 104, in doSelect<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [], timeout)<br>
&nbsp;&nbsp;&nbsp; exceptions.ValueError: filedescriptor out of range in select()</font><br>
<br>
<br>
Now I know this is a very generic error and it could mean a lot of
things, but how would I even start tracking the leak down? Is there a
way I can try and track the number of file descriptors?<br>
<br>
I am using Twisted version 8.2.0 on Ubuntu Server Edition 9.10<br>
<br>
<br>
</font>
</body>
</html>