我们有一个使用PHP的标准lighttpd部署,我们的错误日志充斥着以下内容。这造成了一个巨大的问题,因为我们不断地把500's还给我们的客户:
2012-10-14 14:28:38: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 36
2012-10-14 14:28:38: (mod_fastcgi.c.2764) fcgi-server re-enabled: 0 /tmp/php-7735.socket
2012-10-14 14:28:39: (mod_fastcgi.c.2764) fcgi-server re-enabled: 0 /tmp/php-7735.socket
2012-10-14 14:28:40: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 37
2012-10-14 14:28:40: (mod_fastcgi.c.2764) fcgi-server re-enabled: 0 /tmp/php-7735.socket
2012-10-14 14:28:41: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 57
2012-10-14 14:28:41: (mod_fastcgi.c.3001) backend is overloaded; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 57
2012-10-14 14:28:42: (mod_fastcgi.c.3597) all handlers for /index.php? on .php are down. 有人知道发生了什么事吗?我们重新启动了所有php和lighttpd相关进程,但这并没有解决问题。我们最终重新启动了整个盒子,现在它已经消失了,尽管我们担心它可能会在稍后回来.
总的来说,我们的部署很长一段时间都很好,这是第一次发生这种情况。
发布于 2012-10-15 07:40:04
这基本上意味着所有php进程都忙于处理请求,没有可用的免费php进程来处理新的传入请求。这将导致500错误。
通常这意味着您正在运行的php代码是缓慢的,淹没了php进程。尝试让你的mysql慢日志查看慢查询是否是罪魁祸首,尝试使用php操作代码缓存(如APC )来加快速度。
https://serverfault.com/questions/438332
复制相似问题