[Mono-list] SocketException: Too many open files (1020 sockets at once)
Robert Jordan
robertj at gmx.net
Tue Feb 9 15:19:58 EST 2010
On 09.02.2010 20:56, Oriol de San Pedro wrote:
> Hi,
>
> Any mono application running on Linux (this doesn't happen on Mono Windows
> or NET Framework) issues a "System.Net.Sockets.SocketException: Too many
> open files" when handling more than 1020 sockets at once.
Well, the default max count of open file descriptors in Linux
is usually 1024. Now try to correlate this fact with the count of
your sockets used at once :)
You can raise the count with "ulimit -n max-count".
Robert
More information about the Mono-list
mailing list