简体   繁体   English

cloudControl - 超时和fastcgi错误

[英]cloudControl - timeouts and fastcgi errors

During the past days, we almost always encountered timeouts on our PHP-application while the cloudControl error logfile displayed 在过去的几天里,我们几乎总是在我们的PHP应用程序上遇到超时,同时显示cloudControl错误日志文件

Error [error] [client ...] FastCGI: incomplete headers (0 bytes) received from server "/app/php/box/php-fpm"
Error [error] [client ...] FastCGI: comm with server "/app/php/box/php-fpm" aborted: idle timeout (120 sec)

Will there be an issue with the standard memory limit settings and if so, what would be the best way to fix it? 是否存在标准内存限制设置的问题,如果是,那么解决它的最佳方法是什么? Thanks in advance. 提前致谢。

the error which you are observing in the log often comes from a too long running php process. 您在日志中观察到的错误通常来自运行时间太长的php进程。 The runtime is restricted to 120 seconds. 运行时限制为120秒。 In most of the cases, if your application 'suddenly' starts to print out these messages, it hast something to do with external services (database, web services, ...), which are answering slower than expected. 在大多数情况下,如果您的应用程序“突然”开始打印出这些消息,则它与外部服务(数据库,Web服务......)有关,这些服务的回答速度低于预期。 If this is the case, it is a good practice to configure timeouts (socket) and handle the error case, to prevent your application being affected by other services. 如果是这种情况,最好配置超时(套接字)并处理错误情况,以防止您的应用程序受到其他服务的影响。

I hope it helps. 我希望它有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM