asp.net 网站首页加载缓慢 [英] Slow first page load on asp.net site

查看:29
本文介绍了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天全站免登陆