首先要求是网站处于闲置状态的ASP.NET MVC 3后很慢(IIS7) [英] First request is very slow after website sits idle with ASP.NET MVC 3 (IIS7)

查看:190
本文介绍了首先要求是网站处于闲置状态的ASP.NET MVC 3后很慢(IIS7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我公司开发的项目在ASP.Net MVC 3,我的主机使用IIS7(运网络SERV 2008 R2),并在网站坐的空闲后(在约1-2小时)的第一个要求是很慢的。

I developed a project in ASP.Net MVC 3, my hosting is using iis7 (Win Web Serv 2008 R2), and the first request after the website sit's idle (during about 1-2 hours) is very slow.

我用VPS与512MB RAM。这可以用RAM太小有关?

I use VPS with 512Mb RAM. Can this be related with a too little RAM?

谁能帮我这样的行为可能的原因?

Can anyone help me with possible causes of such behaviour?

推荐答案

一定量的闲置IIS后卸载的AppDomain。然后将第一请求再次是比较慢加载应用程序。你可以尝试配置此期间在IIS的性能但也可能是一个应用程序卸载,例如到达CPU或内存使用率一定的门槛其他原因。这些阈值也是在IIS中配置。

After a certain amount of inactivity IIS unloads the AppDomain. And then the first request loads the application once again which is slower. You could try to configure this period in the properties of IIS but there might also be other causes that an application unloads such as for example a certain threshold of CPU or memory usage is reached. Those thresholds are also configurable in IIS.

这不是具体的ASP.NET MVC的东西。这对于一般的所有ASP.NET应用程序如此。

That's not something specific for ASP.NET MVC. It's true for all ASP.NET applications in general.

这篇关于首先要求是网站处于闲置状态的ASP.NET MVC 3后很慢(IIS7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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