How to improve startup performance on IIS / ASP.Net

前端 未结 5 1267
灰色年华
灰色年华 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:39

    The first time you request a page from a compiled ASP.NET application after its assemblies have been modified, it takes a lot longer to process than a normal page request.

    A simple solution to your problem is therefore to request a page from your application immediately after any modifications. That way you are the first to request a page, and you incur the long wait rather than your users.

提交回复
热议问题