The slow startup time is expected for an ASP.Net site. This is because when
you start up ASP.Net (and the .Net Framework) in a brand new process, it
takes a while for the .Net Framework to load, ASP.Net to pre-compile, etc.
After all this is done, ASP.Net responds fast because everything is already
loaded.
Now, WHY does this happen all the time on IIS6 but not on IIS5? Well, in
IIS6, the notion of process recycling was introduced for reliability
reasons, and a variety of metrics control when a process recycle happens --
such as: every # requests, every day at a certain time, when no requests are
served for # minutes, when CPU goes over a certain limit, etc. This is to
balance preserving server resources as well as performance and reliability.
What is going on here is that IIS6 Application Pool recycle by default after
15 minutes of idleness, as well as every 29 hours -- so everytime the
process recycles, the NEXT request you make will cause a brand new process
to come up... and it takes a while for .Net to load, etc. Since CompanyWeb
is probably pretty idle (no one is browsing it every 15 minutes between 5pm
and 8am, I'd wager), it is likely recycled at the start of every day.
Thus, how to optimize IIS settings for ASP.Net is to:
1. Disable the 15 minute idle timeout
2. Disable the 29hour scheduled recycling
3. Setup the recycling by Private Memory to 60% of all RAM
This should set up a ASP.Net friendly configuration -- process recycles only
when too much memory is taken -- so you should only take the big startup hit
once per server uptime, after the server restarts/reboots, and everytime
your applications hog all the memory and causes trouble. Seems reasonable
to me.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Kevin Weilbacher" <kweilbacMVP DeleteThis @gte.net> wrote in message
news:%23NC62lUXEHA.1164@tk2msftngp13.phx.gbl...
Not much you can do ... if it's any consolation, we all have it!
There was a post several months ago about a possible workaround. However, I
have not found that the workaround improved the situation much. But here it
is ...
<a style='text-decoration: underline;' href="http://msmvps.com/kwsupport/archive/2004/03/14/3911.aspx" target="_blank">http://msmvps.com/kwsupport/archive/2004/03/14/3911.aspx</a>
--
Kevin Weilbacher [SBS-MVP]
"The days pass by so quickly now, the nights are seldom long"
"David Lozzi" <dlozzi(remove-this)@delphi-ts.com> wrote in message
news:OzRwM$TXEHA.4064@TK2MSFTNGP11.phx.gbl...
> Hello,
>
> I've noticed especially with SBS2003, that when trying to get to the
> companyweb, that it takes a good 20-30 seconds to load, but once loaded,
it
> runs great! What's the deal? Can I correct this?
>
> Thanks,
>
> --
> David Lozzi
> Web Applications/Network Specialist
> Delphi Technology Solutions, Inc.
> dlozzi(remove-this)@delphi-ts.com
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Start time for SBS IIS??