在asp.net网站慢速第一页加载 [英] Slow first page load on asp.net site

查看:78
本文介绍了在asp.net网站慢速第一页加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时不时地(永远的闲置很长一段时间后,如隔夜),当我访问使用asp.net网站建成 - 它需要大约15秒加载的页面(15秒之前,我看到任何任何进展,那么页面出现快速)。

Every now and then (always after a long period of idle-time, e.g. overnight) when I access a site built using asp.net - it takes around 15 seconds to load the page (15 seconds before I see any progress whatsoever, then the page comes up fast).

在该网站进一步的网页,或刷新,很快像往常一样 - 他们也很快在其他机器上,只有第一个似乎采取了重灾区

Further pages on that site, or refreshes, are quick as usual - they are also fast on other machines, only the first one seems to take the 'hit'.

页面跟踪从来没有通过任何东西(整个周期是几分之一秒)

Page tracing never through anything up (whole cycle was a fraction of a second)

我的问题是有什么地方我应该找?也许IIS?或者可能它仍然是我的asp.net应用程序,我只是找错了地方(跟踪)为线索?

So my question is where else should I be looking? Perhaps IIS? Or could it still be my asp.net app and I'm just looking in the wrong place (the trace) for clues?

由于我没有在IIS服务器的控制权,任何事情我可以通过asp.net检查会比较有帮助,在我走之前问这个特殊的管理。

As I don't have much control over the IIS server, anything I can check through asp.net would be more helpful, before I go ask that particular admin.

欢呼:D

推荐答案

IIS应用程序池被闲置30分钟后关闭。在此之后,当你提出要求IIS主要有再次向上启动的网站,从而导致您所描述的行为。你可以改变你的网站的空闲时间在IIS中,虽然以避免它。

The IIS application pool is shut down after 30 minutes of inactivity. After that, when you make a request IIS basically has to start the website up again, which leads to the behavior you are describing. You can change the idle time of your website in iis though to avoid it.

这篇关于在asp.net网站慢速第一页加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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