max open file size limit problem



Hi,
I have problem with maximum number of incoming socket connection to be
accepted, is limited to 1018. I found it is because of linux system
default open file size limit of 1024.

I have tried the ulimit -n 20000.
I am trying to open/accept 2000 incoming socket connect. After above
change, accept() function doesn't return error "Too many open files",
But it just hangs over there. It also doesn't work.

Any idea why?
How to find where current process is looping?

I have also tried
#echo "20000" > /proc/sys/fs/file-max
But no difference, Program still hangs after opening 1018 incoming
connections.

Thank you,
Avin Patel

.



Relevant Pages

  • Re: max open file size limit problem
    ... I have problem with maximum number of incoming socket connection to be ... I am trying to open/accept 2000 incoming socket connect. ... But it just hangs over there. ... actually hanging in recv() function of 1018 socket. ...
    (comp.os.linux.misc)
  • Re: max open file size limit problem
    ... I have problem with maximum number of incoming socket connection to be ... I am trying to open/accept 2000 incoming socket connect. ... I have attached the gdb to running process, ... actually hanging in recv() function of 1018 socket. ...
    (comp.os.linux.misc)