I've written a little program that attempts to
measure various system limits: file handles,
TCP sockets, TCP ports, and 'TCP connections', or
'how many times I can call connect() on an unbound
socket before I run out of anonymous ports'.
All work fine except the last. If I raise ulimit -n
to 2048 or so, and file-max to 8192 or so,
I start seeing out of memory errors from poll()!
Here's my test program:
http://www.kegel.com/dkftpbench/dklimits.c
Can anyone tell me what's going on?
Thanks,
Dan