The site use nginx+php-fpm. Today, accessing some pages returns 502 state in a few seconds (different from 502 caused by php script timeout), while other pages stay in service.
Status page of php-fpm shows all processes are active, but they're all stucked in State: finishing, and load of server is low.
pid: 12775
state: Finishing
start time: 18/May/2013:16:50:27 +0800
start since: 755
requests: 59
request duration: 743543095
request method: GET
request URI: /index.php
content length: 0
user: -
script: /data/webserver/index.php
last request cpu: 0.00
last request memory: 0
I'm wondering why this happened, although it becomes well after I restart the php-fpm.
register_shutdown_functionwas stuck. – Haocheng Dec 09 '13 at 12:59