存档

文章标签 ‘慢日志’

php-fpm通过request_slowlog_timeout检查哪个脚本执行时间长

2013年11月21日 5 条评论

很多站长转到nginx+php-fpm后,饱受500,502问题困扰。 当nginx收到如上错误码时,可以确定后端php-fpm解析php出了某种问题,比如,执行错误,执行超时。 php-fpm.conf的配置文件中有一个参数request_slowlog_timeout是这样描述的 ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_slowlog_timeout = 0 当request_slowlog_timeout ...

分类: 技术 标签: ,