如何提高IIS / ASP.Net启动性能 [英] How to improve startup performance on IIS / ASP.Net

查看:135
本文介绍了如何提高IIS / ASP.Net启动性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用的是特别慢虚拟的网络主机(名版主!)如果磁盘性能是非常糟糕的。因此,先打到我的ASP.Net网站可以采取1+分钟加载。 (初始加载后,这一切都在RAM和罚款。)

I am using a particularly slow virtual web host (name withheld!) where disk performance can be very bad. Thus, the first hit to my ASP.Net web sites can take 1+ minutes to load. (After initial load, it's all in RAM and fine.)

我想知道是否有人知道一种方法来指示IIS以pre加载的网站?是精华,模仿先打?

I am wondering if anyone knows a way to instruct IIS to pre-load the site? Is essence, emulate the first hit?

我已经打了所有的precompilation的东西,它可以帮助,但它不是为上述的替代品。

I have played with all the precompilation stuff, it helps, but it's not a substitute for the above.

谢谢!

推荐答案

应用程序是否需要回收?所有回收的股票期权有IIS配置和可以调整,以适合你的应用程序。

Does your application need to recycle? All of the recycle options are in the IIS configuration and can be adjusted to be appropriate for your application.

理想的情况是删除所有应用程序的回收,使应用程序始终保持加载。如果web.config文件被更改或应用程序的新版本部署回收随后将只发生。

The ideal scenario would be to remove all of the application recycles so that the application always remains loaded. Recycling would then only occur if the web.config file was changed or a new version of the application was deployed.

如果需要每日回收,作为每previous回答,一个批处理文件可以用来回收应用程序和它也可以iexplore.exe的与应用程序为$ P $对 - 负载的URL调用它。

If daily recycling is required, as per the previous answer, a batch file could be used to recycle the application and it could also call iexplore.exe with the URL of the application to "pre-load" it.

这篇关于如何提高IIS / ASP.Net启动性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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