[Twisted-Python] Maximum sockets open

Sinang, Danny D.Sinang at spitech.com
Mon Mar 14 21:38:51 EST 2005

Thanks Ken.

How do we determine (from the O.S.) how many sockets are currently open


-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Ken
Sent: Tuesday, March 15, 2005 12:47 AM
To: Twisted general discussion
Subject: Re: [Twisted-Python] Maximum sockets open

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.


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

Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list