[Twisted-Python] socket error 22

Werner Thie wthie at thiengineering.ch
Wed May 7 07:23:23 MDT 2008

Thanks for the hint Eric,

ulimit -Ha
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         1048576
stack(kbytes)        32768
lockedmem(kbytes)    unlimited
memory(kbytes)       unlimited
nofiles(descriptors) 3404
processes            1044

I had this problem before and really hit the nofiles limit, but the 
values above seem to be safe.

With twisted 2.5 I was able to run 'trial twisted' successfully but with 
8.0.1 one of the tests (manyProcesses or so) crashes and locks up the 
system completely.

I seem to be stuck in between a rock and a hard place :-((

Thxs, Werner

Eric Faurot wrote:
> On Tue, May 6, 2008 at 4:43 PM, Werner Thie <wthie at thiengineering.ch> wrote:
>> Hi all
>>  Running on twisted 2.5 OpenBSD I see the following traceback in the logs
>> every twenty minutes with up to 200 athena/LivePages connected:
> [snip]
> If you have a lot of connections, you might hit the open file limit, which is
> rather low by default on openbsd, especially for default login class.
> I would expect the issue to show up differently though.
> Try tweaking resource.getrlimit and see what happens when you lower
> and increase the LIMIT_NOFILE.
> Eric.
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list