[Twisted-Python] Maximum sockets open

Ken Kinder ken at kenkinder.com
Mon Mar 14 09:46:58 MST 2005


A while ago, we were opening up a ton of sockets and got a "Too many 
files open" error. I don't know what you're getting, but if that's it, 
you might try (1) opening fewer sockets, (2) upping operating system 
limit (Twisted doesn't control that).

According to our admin, on Linux, that would be /proc/sys/fs/file-max 
and use "sysctl -w 'fs.file-max=<new limit>'" to up the limit.

-Ken

Sinang, Danny wrote:

> Hello,
>  
> Is there a maximum number of sockets that Twisted supports ? If so, 
> what is the maximum, how do I see what it's current value, and how to 
> I set it to another value ?
>  
> Regards,
> Danny
>  
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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