Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS: web applications warmup

After IIS reset, first hit taking a long time because AppPool is starting and other .NET components, DB connections are initializing.

What would be the best way to warm up IIS applications and preload required components (e.g. GAC Assemblies, WCF, WWF libraries)

I'm working on IIS 6, Windows 2003 server x64

(I know there is warmup module for IIS 7, but I'm on IIS 6.how that warmup module in IIS 7 works internally?)

like image 904
usman shaheen Avatar asked Jan 14 '10 10:01

usman shaheen


People also ask

What is enable preload in IIS?

Setting preloadEnabled to "true" tells IIS 8.0 that it sends a "fake" request to the application when the associated application pool starts up. That is why in the previous step we set the application pool's startMode to "AlwaysRunning".

How do I Auto Start IIS?

Open Internet Information Services (IIS) Manager. In the Connections pane, select the Application Pools node, revealing the Application Pools pane in the main view. Select the application pool for which you wish to enable Auto-Start. Locate the Start Mode option under the General group and set it to AlwaysRunning.


2 Answers

Some tips on warm up scripts:

http://www.andrewconnell.com/blog/archive/2006/08/21/3882.aspx

More info on the IIS site:

http://blogs.iis.net/steveschofield/archive/2009/05/30/application-pool-warm-up.aspx

Check out the latest news under "Auto-Start Web Applications" section here:

http://www.asp.net/LEARN/whitepapers/aspnet4/default.aspx

like image 158
IrishChieftain Avatar answered Oct 11 '22 14:10

IrishChieftain


For IIS 7.5 you can using the Application Warmup Module -

http://www.iis.net/download/applicationwarmup

like image 25
Bhaskar Avatar answered Oct 11 '22 12:10

Bhaskar