Why does the number of open files matter? The sockets are
non-blocking, we use 64 acceptors, so there must be only 1 open file

2011/12/5 Emmanuel Lecharny <elecha...@gmail.com>:
> On 12/5/11 2:53 PM, Antonio Rodriges wrote:
>>
>> Hello,
>>
>> We are testing our distributed app on Mina by ruinning 512 threads per
>> machine simulating concurrent access by many users.
>> At sturtup, Mina opens only 808 sessions while we have 2048 threads in
>> total.
>>
>> When a thread is unable to open a session it waits. When others finish
>> it is able to open a session.
>>
>> I wonder how to raise this limit and why is it 808?
>
> Hmmm... Don't you have any exception on the server, like you can't any more
> open files ?
>
> Here, a bit more of relevant informations could help :
> - MINA version
> - OS used
> - if it's a linux based OS, the ulimit set for the user you are running your
> server under (should be something like 1024 as a default value, and then 808
> could be the max number of files you can open, assuming that the other
> processes are already handling around 216 files).
>
> Keep in mind that on linux, one socket = one opened file.
>
> You can do a netstat -a|wc -l to know how many opened files you have.
>
> Hope it helps.
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>



-- 
Kind regards,
Antonio Rodriges

Reply via email to