How to improve startup performance on IIS / ASP.Net

前端 未结 5 1263
灰色年华
灰色年华 2021-01-05 08:20

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 l

5条回答
  •  误落风尘
    2021-01-05 08:45

    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.

    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.

    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.

提交回复
热议问题