Hi all,
I have production machine running for quite sometime. Since day one, I
have been seeing the following errors in the logs:
2010/10/27 08:40:40 [error] 8459#0: *25044705 recv() failed (104:
Connection reset by peer) while reading response header from upstream,
client: 72.44.44.132, server: XXXXX.com, request: "HEAD /some/url HTTP/
1.1", upstream: "fastcgi://
127.0.0.1:9000", host: "
www.XXXXX.com"
I have noticed, that in all the cases, the requests are failing for
HTTP HEAD. Not a single GET or POST requests.
I tried upgrading from php 5.1.8 with spawn-fcgi to php 5.3.3 with php-
fpm but that didn't help much.
The only thing that I gained, is more information in the php-fpm logs.
I see the following quite often and in conjunction with the above
errors:
Dec 15 10:18:26.102944 [WARNING] [pool www] child 16744 said into
stderr: "zend_mm_heap corrupted"
Dec 15 10:18:26.109527 [WARNING] [pool www] child 16744 exited with
code 1 after 8.278630 seconds from start
I also see the following in /var/log/messages/
Dec 15 10:10:39 pb-main kernel: [12692976.574969] php-fpm[6044]:
segfault at 10 ip 000000000058b6e7 sp 00007fffb93bee10 error 6 in php-
fpm[400000+2ae000]
Dec 15 10:13:51 pb-main kernel: [12693167.973450] php-fpm[8189]:
segfault at 860c6ea1 ip 00000000005b9a40 sp 00007fffb93bf360 error 4
in php-fpm[400000+2ae000]
Dec 15 10:14:48 pb-main kernel: [12693224.995135] php-fpm[9654]:
segfault at 10 ip 000000000058b6e7 sp 00007fffb93bee10 error 6 in php-
fpm[400000+2ae000]
I am not sure if all of these are related to one another, but I
thought I will give as much information as possible.
I am using Centos 5.5 with nginx 0.7.65 as HTTP server.
My nginx configuration for fastcgi is as followed:
location ~ \.php$ {
fastcgi_pass localhost:9000; # port where FastCGI processes
were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/
site.com/html
$fastcgi_script_name; # same path as above
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
I have been researching about this for months and still came up with
nothing. I really hope someone here can advise.
Thanks in advance!