为什么IIS7需要很长时间 [英] Why does IIS7 take a long time

查看:229
本文介绍了为什么IIS7需要很长时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它看起来喜欢,如果我没有访问我的低流量的网站,每天需要花费很长时间的第一页加载。我相信这可能是因为IIS7当它收到了一定的时间长度没有要求关闭应用程序。

It looks likes if I don't visit my low traffic site for a day, it takes a long time for the first page to load. I believe it's probably because IIS7 shuts down the application when it receives no requests for a certain length of time.

我怎样才能阻止这种情况发生?

How can I stop this from happening?

我有一个专门的服务器,所以我都改变IIS的东西所需的访问

推荐答案

有两种方法可以处理这个问题。

There are two ways that you can handle this.


  1. 修改应用程序池中的空闲超时的价值。默认情况下它会关闭应用程序,如果有20分钟没有请求

  1. Modify the "Idle Timeout" value within the application pool. By default it will shutdown the application if there are no requests for 20 minutes

如果您使用的是ASP.NET 4.0中,你可以使用新的自动启动行为,以保持应用程序始终运行就可以看到这个<一个href=\"http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx\">blog 发布关于如何配置的例子。

If you are using ASP.NET 4.0 you can use the new Auto-Start behavior to keep the app "Always Running" you can see this blog post for examples on how to configure it.

这篇关于为什么IIS7需要很长时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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