php的執行時間啊

早上到公司查看nginx的錯誤日誌,發現有很多這樣的東東:

2012/10/10 19:30:23 [error] 21782#0: *1180689552 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 211.140.18.117, server: xxxx, request: "POST /a.php HTTP/1.1", upstream: "fastcgi://unix:/var/fastcgi-1.sock:", host: "xxxx"
2012/10/10 19:30:23 [error] 21780#0: *1180689995 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 119.39.249.49, server: xxxx, request: "POST /a.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/fastcgi-1.sock:", host: "xxxx"

改域名的訪問日誌也有很多的502

丫的很久沒看見錯誤日誌了先解決唄。查看使用php-cgi的個數,發現沒有出現不夠用的。仔細看nginx的錯誤日誌這不是php-cgi不夠用啊,這是個什麼東東呢,網上一通查也沒找到答案。唉,還是仔細看看日誌吧

發現訪問日誌中那時候訪問a.php的時間都在3s以上。

查看php-cgi.conf原因重要找到了

<value name="request_terminate_timeout">3s</value>

明天繼續觀察

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章