自动启动 ASP.NET 应用程序池?
有没有办法在 IISRESET 或计划重置后自动启动 ASP.NET 应用程序池,以便初始用户不必等待应用程序池加载?
Is there a way to automatically spin up an ASP.NET app pool after an IISRESET or the scheduled reset so that the initial user doesn't have to wait for the app pool to load?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
iisreset 后从应用程序请求页面。这很容易实现自动化。
Request a page from the app after iisreset. This is easily automated.
SharePoint 人员 Joel Oleson(前 Microsoft)有一个可用的预热脚本< /a> 在他的旧 MS 博客上。搜索
asp.net 预热脚本
了解更多内容。通常,应用程序池会过夜回收。因此,您可以在人们开始工作之前将此脚本作为计划任务运行,而无需人们等待。
SharePointer Joel Oleson (previously of Microsoft) has a warmup script available at his old MS blog. Search for
asp.net warm up scripts
for many more.Typically the application pool recycles overnight. So you can run this script as a scheduled task before people come into work and there will be no need for people to wait.
如果您使用的是 IIS 7,有一个名为“应用程序预热”的 IIS 插件,它将帮助
我在这里写一篇关于我使用它的经验的博客文章(不知道我是否可以发布自己的内容?) :
http:// /www.diaryofaninja.com/blog/2010/05/06/keep-your-aspnet-websites-warm-and-fast-247
If you're using IIS 7 there is an IIS plugin call Application Warm Up that will help
I've written a blog post about my experiences using it here (don't know if i'm allowed to post to my own content?):
http://www.diaryofaninja.com/blog/2010/05/06/keep-your-aspnet-websites-warm-and-fast-247
IIS7 就有这样的东西。但我没有尝试过,不能告诉更多。
There is such a thing for IIS7. But i haven't tried, can't tell much more.
我有时会使用 VB 脚本来请求页面,并将其设置为作为计划作业运行。运行良好,几分钟内即可完成设置。
I have sometimes used a VB-script that requests a page, and set that up to run as a scheduled job. Works perfectly well, and is set up in a couple of minutes.
您可以尝试适用于 SharePoint 开发人员的应用程序池回收实用程序,但创建者不建议将其用于生产站点。
You can try Application Pool Recycle Utility for SharePoint Developers but the Creator not recommend it for the Production Sites.