1、在nginx里增加以下日志的记录
2、php-fpm加上慢请求的日志
3、使用xhprof来精准定位
http://virest.org/xhprof.html
http://blog.51yip.com/php/1099.html
其实通过1、2的日志,基本上可以确认问题所在了,使用xhprof当然就更完美了,在实际生产环境中,加上xhprof,貌似都是比较事后了(大部分情况下xhprof都不默认启动)。
作者:bixuan
来源:http://www.ourlinux.net/2010/11/23/1376.html