- 论坛徽章:
- 0
|
现一生产服务器,连接数目一大就会出现如下信息。php-fpm.log里面一直会有这样的信息
- [root@www logs]# tail php-fpm.log
- Apr 01 14:38:13.942822 [NOTICE] fpm_children_make(), line 352: child 14084 (pool default) started
- Apr 01 14:38:14.138072 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
- Apr 01 14:38:14.138153 [NOTICE] fpm_children_bury(), line 215: child 13956 (pool default) exited with code 0 after 98.509143 seconds from start
- Apr 01 14:38:14.138846 [NOTICE] fpm_children_make(), line 352: child 14085 (pool default) started
- Apr 01 14:38:16.545035 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
- Apr 01 14:38:16.545122 [NOTICE] fpm_children_bury(), line 215: child 13958 (pool default) exited with code 0 after 96.974407 seconds from start
- Apr 01 14:38:16.545674 [NOTICE] fpm_children_make(), line 352: child 14086 (pool default) started
- Apr 01 14:38:19.133433 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD
- Apr 01 14:38:19.133512 [NOTICE] fpm_children_bury(), line 215: child 13957 (pool default) exited with code 0 after 101.740640 seconds from start
- Apr 01 14:38:19.134466 [NOTICE] fpm_children_make(), line 352: child 14087 (pool default) started
- [root@www logs]#
复制代码
采用的是nginx+php-cgi ,nginx 0.7.27 php-5.2.8
fcgi.conf 配置
- fastcgi_param GATEWAY_INTERFACE CGI/1.1;
- fastcgi_param SERVER_SOFTWARE nginx;
- 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_FILENAME $document_root$fastcgi_script_name;
- 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 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;
- # PHP only, required if PHP was built with --enable-force-cgi-redirect
- fastcgi_param REDIRECT_STATUS 200;
复制代码
php-fpm.conf配置
连接状态
[root@www logs]# netstat -an | grep 80 | awk '{print $6}' | sort | uniq -c | sort -rn
21182 ESTABLISHED
4103 TIME_WAIT
1571 FIN_WAIT2
1465 FIN_WAIT1
293 LAST_ACK
134 SYN_RECV
24 CONNECTED
17 SYN_SENT
12 CLOSING
1 LISTEN
[root@www logs]# netstat -an | grep 9000 | awk '{print $6}' | sort | uniq -c | sort -rn
1522 TIME_WAIT
270 SYN_SENT
19 ESTABLISHED
4 SYN_RECV
1 LISTEN
1 LAST_ACK
1 FIN_WAIT1
1 CLOSE_WAIT
[root@www logs]#
请各位帮忙提下建议 |
|