craaazy123 发表于 2013-03-07 16:41

php-cgi容易崩溃,有木有???!!!!!

rt,我用的是linux下nginx+php 5.4
nginx 和 php都是自己从源代码编译安装的 用的php自带的php-cgi,测试时发现如果访问频繁的话,php-cgi就直接崩溃了!大家是怎么解决的?
当初以为只有windows才出现这种问题,没想到linux下也有!

linux_c_py_php 发表于 2013-03-07 16:53

很少很少很少, 少之又少.

pix77 发表于 2013-03-08 13:46

看日志,有报错提示的

craaazy123 发表于 2013-03-08 14:07

回复 3# pix77
2013/03/01 12:00:39 168#3920: *559 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: 2013/03/01 12:00:39 168#3920: *565 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /subweb/device-query.php?mod=all HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "http://localhost/subweb/device.php"
2013/03/01 12:01:39 168#3920: *567 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /subweb/device-query.php?mod=all HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost", referrer: "http://localhost/subweb/device.php"

日志就是这样 只知道php-cgi挂了

pix77 发表于 2013-03-08 14:32

嗯,你可以google,一个一个测试:mrgreen:
页: [1]
查看完整版本: php-cgi容易崩溃,有木有???!!!!!