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?)

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

Method 2

For IIS 7.5 you can using the Application Warmup Module –

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

Method 3

You will find the script posted on http://blogs.msdn.com/joelo/archive/2006/08/13/697044.aspx.
Though it is meant for sharepoint but it will work just as fine with any IIS web project.
You may need to adjust the file to make it hit the different applications pages you want.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x