Nginx + php-fpm - recv() error

Posted by Ilya Biryukov on Server Fault See other posts from Server Fault or by Ilya Biryukov
Published on 2011-08-18T22:43:42Z Indexed on 2013/10/21 21:55 UTC
Read the original article Hit count: 302

Filed under:
|
|

I get the follow error in the nginx log

[error] 17734#0: *6643 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: [cut], server: [cut], request: "GET /venues HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[cut]"

I have a dedicated box with 8 gb ram, quad core chip. Good server. Nginx, php-fpm & mysql all latest versions running under ubuntu 10.04

I only get this when I stress test the server with siege. If I increase the number of concurrent connections to 100, I can get up to 20% of all requests to fail.

Furthermore, I don't get this on pages that have no mysql queries. And only a few failures on pages with moderate number of queries. Bit, I'm not sure if that's got to do anything with it.

I have a feeling this is something to do with php. But I can't figure it out.

Any suggestions of where to even start looking?

Update: and the php error log is silent. No record of anything going wrong

© Server Fault or respective owner

Related posts about nginx

Related posts about php-fpm