Understanding this error: apr_socket_recv: Connection reset by peer (104)

Posted by matthewsteiner on Server Fault See other posts from Server Fault or by matthewsteiner
Published on 2010-05-30T00:59:36Z Indexed on 2010/05/30 1:02 UTC
Read the original article Hit count: 494

Filed under:
|
|
|

So, if I do some benchmarking with apache benchmark (ab), and I use large numbers of requests. Then sometimes in the middle of a test I get this error.

I don't even know what it means. So how can I fix it? Or is it just something that will happen if the server gets too many hits anyway? The problem is, if I run 10,000 hits, it'll all run perfectly. If I run it again, it'll get to 4000 and get the error:

apr_socket_recv: Connection reset by peer (104)

A little about my setup: I have nginx taking static requests and processing dynamic ones to apache. The file in question is served from cache by nginx, so I guess it's probably got to do with how nginx is handling the requests?

Ideas?

© Server Fault or respective owner

Related posts about apache

Related posts about nginx