[Symfony]错误:500-请求超时.Web服务器未能在指定的时间内响应. [英] [Symfony] Error: 500 - The request timed out.The web server failed to respond within the specified time.

查看:97
本文介绍了[Symfony]错误:500-请求超时.Web服务器未能在指定的时间内响应.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的Microsoft Azure团队,

Dear Microsoft Azure team,

自昨天格林威治标准时间19点左右以来,我们的Azure生产服务器(订阅:********************)一直存在问题.一切似乎都工作正常,除非服务器尝试处理与php"array_merge"相同的细枝. 功能,称为合并".此细枝功能在5分钟后导致服务器超时错误.当我们从文件中删除该功能时,它又可以工作了.直到昨天,它一直运行良好.此外,此功能相同 在我们的预生产服务器(也是Azure服务器)上可以很好地工作.因此,我们很困惑.

Since yesterday at around 19 GMT, our Azure production server (subscription:********************) has been having issues. Everything seems to be working just fine, except when the server tries to process the twig equivalent of the php "array_merge" function, called "merge". This twig function is causing a timeout error on the server after 5 minutes; and when we remove that function from our files, it works again. It used to work perfectly well until yesterday. Additionally, this same function works perfectly well on our pre-production server, which is an Azure server as well. Thus, we are quite confused.

您能帮我们吗?预先谢谢你

Can you help us? Thank you in advance

推荐答案

您将网站托管在Azure Web Apps或Azure Virtual上机器?如果您指的是Azure Web Apps,请检查以下信息.

Are you referring to Azure Functions? Have you hosted your site on Azure Web Apps or Azure Virtual Machines? If you are referring to Azure Web Apps, check the below information.

请注意, ,对于没有将任何数据发送回响应的请求,超时限制为230秒.

如果发送恢复数据以保持其生命力是不可行的,建议的方法是移至异步模式.

您可以参考大卫·埃博(David Ebbo)关于 MSDN线程 以获取更多详细信息.

You may refer David Ebbo’s response on the MSDN thread for more details.

从此开始之前正在工作,请检查以下信息,看看是否有助于解决问题.

如果未启用始终开启"功能/设置,建议您启用该设置,看看是否有任何区别.默认情况下,网络 如果应用闲置一段时间,则会将其卸载.这样可以节省系统资源.在基本"或标准"模式下,您可以启用始终在线"以保持应用程序始终处于加载状态.

If ‘Always On’ feature/setting isn’t enabled, I suggest you enable the setting and see if that makes any difference. By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable ‘Always On’ to keep the app loaded all the time.

此外,您可以使用应用程序设置"配置各种内容,这些内容可以在 Azure门户.为此,我建议您看一下 GitHub页面 .

Also, there are various things that you can configure using Application Settings, which you can find on the Configure page in the Azure portal. To do this, I suggest you take a look into this GitHub page.


这篇关于[Symfony]错误:500-请求超时.Web服务器未能在指定的时间内响应.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆