应用程序编译每15分钟 [英] application compiles every 15 minutes

查看:233
本文介绍了应用程序编译每15分钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ASP.NET4 MVC2我的应用程序。使用应用程序的第一人通常是应用程序响应之前经历了一个漫长的等待。此后,该应用程序是pretty响应。如果应用程序是闲置15分钟后,同一人或使用该应用程序旁边的人会再次经历漫长的等待。它看起来像应用程序在空闲15分钟后编译。谁能告诉我,我应该麻烦拍摄问题?谢谢你。

I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the same person or the next person using the application will experience long wait again. It looks like the application compiles after being idle for 15 minutes. Can someone tell me where I should look to trouble shoot the problem? Thanks.

推荐答案

这是几乎可以肯定的情况是你遇到的是的应用程序池回收的。的确需要一定的时间的池已回收后重新初始化,但它不应该采取一切那么久。多久是一个漫长的等待?一秒?一些?在IIS中你可以配置你的应用程序池如何定期回收。对于IIS 7,在你的应用程序池单击鼠标右键,选择高级设置再看看空闲超时。您可以考虑增加该值。 (或设置为0完全禁用。)

It is almost certainly the case that what you are experiencing is app pool recycling. It's true it takes some time to re-initialize after the pool has been recycled, but it shouldn't take all that long. How long is a "long wait"? A second? Several? In IIS you can configure how regularly your app pool recycles. For IIS 7, right-click on your app pool and choose "Advanced Settings" then look at "Idle Time-out". You may consider increasing this value. (Or set to 0 to disable completely.)

这篇关于应用程序编译每15分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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