I do not understand that metric either. That's why I always report 'requests' vs 'timeouts'. The Socket Errors only appear on high load with the timeouts.
Yes, the reason I used wrk
, is that it uses pipelining. That's why ab (apachebench) had such terrible performance: it opened a new socket for each request. And then it overloaded the system by throwing
socket: Too many open files
apr_socket_recv: Connection reset by peer
errors.
I raised the ulimit -n
to 10240, but still apr_socket_recv: Connection reset by peer (104)
occurred occasionally.