Asp.net网站首次启动很慢 [英] Asp.net website first start is very slow

查看:270
本文介绍了Asp.net网站首次启动很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次加载在生产Web服务器的网站,它开始很慢,随后的页面加载速度非常快(包括主页)。

The first time I load the website in the production web server, it start very slow, subsequent pages load very quickly (included the home page).

我precompiled的网站,但没有任何变化。

I precompiled the site, but nothing changes.

我没有在申请启动任何code。
我没有缓存的项目。

I don't have any code at Application start. I don't have cached items.

任何想法?我如何才能找到发生了什么事?

Any ideas? How can I find out what is happening?

推荐答案

这只是你的应用程序域加载和加载任何可执行文件到内存中。此外,它的初始化静态变量,所以如果你有一个从数据库加载了大量数据的静态变量,它可能会采取一些。

It's just your app domain loading up and loading any binaries into memory. Also, it's initializing static variables, so if you have a static variable that loads up a lot of data from the db, it might take a bit.

这篇关于Asp.net网站首次启动很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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