English 中文(简体)
在网站与ASP.NET MVC 3(IIS7)闲置后,第一次请求非常缓慢
原标题:First request is very slow after website sits idle with ASP.NET MVC 3 (IIS7)

我在ASP.Net MVC 3中开发了一个项目,我的主机正在使用 iis7 (Win Web Service 2008 R2),

我用 VPS 与 512Mb 内存 512Mb 。 这是否与太小的内存有关?

有没有人能帮我解决这种行为的可能原因?

最佳回答

在一定量的不活动 IIS 卸载 AppDomain 后, 第一次请求再次加载程序, 速度较慢 。 您可以尝试在 IIS 属性中配置此时间段, 但可能还有其他原因, 例如某个应用程序卸载到一定的 CPU 阈值或内存使用 。 这些阈值也可以在 IIS 中配置 。

这不是ASP.NET MVC的具体内容,它适用于ASP.NET的所有应用。

问题回答

我们也有红宝石和乘客的问题, 过了一段时间之后, 将应用程序从记忆中去除, 但我发现一个不错的应用程序, 为我们固定了这个问题, 而不改变服务器配置中的任何内容, 应用程序被称为“Wekkars”, 你可以在这里找到它:http://www.wekkars.com





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签