On Thu, Jun 3, 2010 at 1:30 PM, Nouknouk <[email protected]> wrote:
> Le 03/06/2010 13:21, Anthony Catel a écrit :
>>
>>
>> Nouknouk a écrit :
>>>
>>> Hi,
>>>
>>> two things you may point your attention on:
>>>
>>> - on linux servers, the number of file descriptors (socket has a file
>>> descriptor) is limited by kind of 'user policy'. Take a look at the 'ulimit'
>>> command (you may want to do something like 'ulimit -n 99999' to raise the
>>> maximum of concurrent opened fd)|.
>>> |
>>
>> This is the goal of rlimit_nofile. APE Server increase this value itself.
>
> Ok, didn't know.

If the rlimit_nofile option isn't enoght you might want to check
/proc/sys/fs/file-max and read man limits.conf.


>
>>> ||
>>> - afaik there are only 2^16 ports available for TCP protocol, so I
>>> suppose a single computer cannot have more than 2^16 connexion at the same
>>> time.
>>>
>> No, it's a server, there is only one port used while a client open a new
>> port for each new outgoing connection. So, it's not the issue ;)
>
> Plus a real question, just to understand: I thought there was two kind of
> ports in TCP: source AND destination ports, both being 16 bits values ; if
> the same destination port's value is used by every client, how does the
> server's TCP stack to identify to which 'client fd' belongs the just
> received network packet ? A combination of IP + port ?

Connections/"client fds" are identified by a tuple of at least (src
IP, src port, dst ip, dst port)
The This might become an problem on your client machine.
It can be easily solved using multiple IPs/client machines.

Some related sysctls you might want to check/change:
net.ipv4.netfilter.ip_conntrack_max = 1000000
net.ipv4.ip_local_port_range=1024 65535

To allow a lot of new connections in a short time period (TIME_WAIT
problem, they might cause problems, please read the documentation):
net.ipv4.tcp_fin_timeout = 5
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to