简体   繁体   English

Azure VM IIS 重新启动

[英]Azure VM IIS Restarting

We have a simple .net application running crystal reports in an Azure VM.我们有一个简单的 .net 应用程序在 Azure VM 中运行水晶报表。 We have some code that detects if the application has restarted, and this application is restarting often.我们有一些代码可以检测应用程序是否已重新启动,并且此应用程序经常重新启动。

protected void Application_Start()
{
    if (!HttpContext.Current.IsDebuggingEnabled)
        SendgridService.SendAppRestartEmail();        
}

I suspect the application is going to sleep or something is triggering the restart, but cant work out what.我怀疑应用程序将进入睡眠状态或某些东西正在触发重新启动,但无法弄清楚是什么。

After doing a lot of searching I am posting here to see if anyone can help在做了很多搜索之后,我在这里发帖看看是否有人可以提供帮助

Most likely the problem is that your AppPool is getting recycled because of the low usage.最有可能的问题是您的 AppPool 由于使用率低而被回收。 You'll need to adjust timeout settings.您需要调整超时设置。 See the following articles:请参阅以下文章:

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

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