Re: Về Việc: Re: MAXFD is always 1024

From: Henrik Nordstrom (hno@marasystems.com)
Date: Thu Aug 18 2005 - 07:12:27 MDT


On Tue, 16 Aug 2005, Hay Tran The wrote:

> Thanks Henrik, I can increase number of open file by
> adding ulimit before ./configure as you suggested.
>
> Now, I got problem that after running for a while,
> polyctl shows:
>
> "OS probably ran out of ephemeral ports at
> 10.101.0.1:0"

You probably need more IPs available on the client, or perhaps reconfigure
your OS to allow the use of a wider range of ports when making
connections. On linux this port range is set in
/proc/sys/net/ipv4/ip_local_port_range.

In worst case you need approximately as many ports available as number of
requests per two minutes. To find the number of ports available on your
client multiply the size of the configured local port range with the
number of available IPs.

Regards
Henrik



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:28 MST