iusmar
iusmar

Reputation: 359

Site at first load very slow IIS debug

Our live website is loading very slow at first request and I need to dig deeper in IIS/Server. Do you have any tricks that could help me investigate and resolve this without any 3rd parties tools?

Upvotes: 0

Views: 1215

Answers (2)

RedgoodBreaker
RedgoodBreaker

Reputation: 310

There are some things to consider

  1. Change IIS/Application Pools configuration to use startMode="AlwaysRunning" this causes to w3wp process spawning just after you start Application Pool (this reduces a bit of time with first request)
  2. Start using Application Initialization Module, it may require some implementation but in basic setup can reduce time of first request at least several seconds
  3. Alternatively you can use IProcessHostPreloadClient but it's specific to ASP.NET applications

If we are talking about application deployment process you also need to know that there are 2 concepts (if we are talking about .net applications) IIS Application Pool and .Net AppDomain https://www.treeloop.com/blog/iis-application-domain-and-pool-recycling so 2 and 3 may behave diferrently

Upvotes: 1

samwu
samwu

Reputation: 5205

IIS must compile the application when the first request come. That's why IIS cost so much time to return first response. Please application initialization.

application-initialization

Upvotes: 0

Related Questions