As the warning states, the number of connections to the http server is exceeding the maximum number of allowed open file-descriptors. It's likely that even though httperf
is limiting the value to FD_SETSIZE, you're reaching beyond that limit.
You can check the limit value with ulimit -a
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
Try increasing the limit with ulimit -n <n>
$ ulimit -n 2048
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
This is common practice on large web servers and the like, as a socket is essentially just an open file-descriptor.
__FD_SETSIZE
(like 1024). Afaik you'll need to recompile the limiting RPM packages (e.g. glibc, Apache, PHP, etc.) to increase__FD_SETSIZE
, so I'd suggest migrating the question to Server Fault. – Disease