ASP.Net / Umbraco 网站(最初)服务器响应时间非常长
我有这个问题。 我在 ISP 上使用 Umbraco CMS 启动了一个 ASP.NET 网站。 (它只是一个非常基本的信息网站。没什么特别的。)
但是,当我想要访问该网站时,第一个页面加载需要很长时间,有时甚至长达 20 秒。当然,这是荒谬的。 之后,我能够相对较快地浏览该网站。
因此,每个第一个页面加载都很慢,然后一切都或多或少地正常。
有人知道问题可能是什么吗?会是IIS吗? ASP.NET?
I've got this problem.
I launched an ASP.NET website with the Umbraco CMS on an ISP.
(Its just a very basic informative site. nothing special.)
When I go want to visit the website however, the first pageload takes a lot of time, sometimes even up to 20 seconds. Of course this is ridiculous.
Afterwards, I am able to navigate the site relatively quick..
So every first pageload is slow, then everything is OK, more or less.
Does anybody have any idea what the problem could be? Would it be IIS? ASP.NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
IIS 可能配置为在 N 分钟不活动后关闭应用程序池。
AFAIK,这是 IIS 上的默认行为。
IIS is probably configured to shutdown the application pool after N minutes of inactivity.
AFAIK, this is the default behaviour on IIS.
如果这是第一个要服务的请求,IIS 至少会启动应用程序池。这可能需要一些时间。也许 Umbraco 最初会加载一些数据,但我没有任何使用 Umbraco 的经验,所以这超出了我的知识范围。
-sa
If it is the first request to be served, IIS at least starts the APP Pool. This might take a bit of a time. Maybe Umbraco loads initially some data, but I did not have any experience with Umbraco, so that's beyond my knowledge.
-sa
首页加载是什么意思?
您刚刚完成构建吗?如果这是一个网站,那么 .Net 将编译并加载 dll。然后 IIS 将缓存页面输出。
页面上有大图片吗?
本质上有无数的原因。你用过萤火虫吗?确定加载时间在哪里?
你有链接吗?
What do you meen by first page load?
Have you just done a build? If this is a website then .Net will compile and load the dll. Then IIS will cache page outputs.
Do you have any large images on the page?
Essentially there are an infinate number of reasons. Have you used firebug? Determine where the loadtime is?
Do you have a link?
您可能想研究一下保持活动的服务。有许多可用的工具可以定期轮询您的站点,以保持应用程序池运行并防止您看到的启动延迟。更多信息此处和此处。
You may want to look into a keep alive service. There are many available that regularly poll you site to keep the application pool running and prevent the startup delay you are seeing. More information here and here.