Hi:<br><br>I've found 2 kinds of 502 errors in my server:<br><ol><li>connection reset by peer, it happens as request_time reach to 10s.</li><li>connection timeout, it happens as request_time reach to 3s.</li></ol><br>Server is:<br><ul><li>centos , kernel(2.6.32)</li><li>php5.2 php-fpm</li><li>nginx 1.6.3.</li></ul><br>access logs outputs:<br><blockquote formatblock="1" style="margin: 0.8em 0px 0.8em 2em; padding: 0px 0px 0px 0.7em; border-left: 2px solid rgb(221, 221, 221);">[28/Nov/2015:14:41:08 +0800] "GET /ben2.php HTTP/1.1" 502 172 "-" "Apache-HttpClient/4.2.6 (java 1.5)" "-" 3.000<br><br>[28/Nov/2015:14:41:11 +0800] "GET /ben2.php HTTP/1.1" 502 172 "-" "Apache-HttpClient/4.2.6 (java 1.5)" "-" 10.000<br></blockquote>error logs:<br><blockquote formatblock="1" style="margin: 0.8em 0px 0.8em 2em; padding: 0px 0px 0px 0.7em; border-left: 2px solid rgb(221, 221, 221);">2015/11/28 14:41:11 [error] 12981#0: *798323 recv() failed (104:
Connection reset by peer) while reading response header from upstream,
client: xx.xx.xx.xx, server: xx.xx.xx, request: "GET /ben2.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xx.xx.xx"<br><br>2015/11/28 14:41:08 [error] 12981#0: *798215 connect() failed (110: Connection timed out) while connecting to upstream, client: xx.xx.xx.xx, server: xx.xx.xx, request: "GET /ben2.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xx.xx.xx"<br></blockquote><br><br><br>I've tried "request_terminate_timeout, fastcgi_connect_timeout, fastcgi_read/write_timeout", but no help.<br><br>What can I do next step ?<br><br>