Even though I know yaws is high performer, to bring my system into production, I wanted to check how yaws performs.with ab(apache benchmark)

ab -n 50000 -c 100 http://localhost:8080/

I was always getting a error throwing after processing 30K requests.

apr_socket_recv: Connection reset by peer (104)

So I though some there might be some ulimit problem, so to cross verify I tried to test ab against apache, but surprisingly gave me good results.

innoz@innoz-desktop:~$ sudo ab -n 50000 -c 100 http://localhost/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests

Server Software:        Apache/2.2.14
Server Hostname:        localhost
Server Port:            80

Am I missing something anywhere? Kindly suggest. ab/yaws/apache are in same machine.