How do I prevent IIS from compiling website?

前端 未结 5 1038
北荒
北荒 2021-02-08 10:46

I have an ASP .NET web application which on the backend is talking to an ASMX web service. We have counted and the average wait time for the initial request is 20s. I am wonderi

5条回答
  •  梦谈多话
    2021-02-08 11:27

    One alternative approach is to write a "warm-up script" which simply executes one page from your app. This will make the server spin-up for you and the next person will get a fast hit. You could also set a scheduled process to run that script occasionally (like, if you schedule the thread pool to recycle at 4 am, schedule the warm-up script to run at 4:01 am)

提交回复
热议问题