Re: Performance question (IIS 6)

From: Glen Appleton (buglen_at_hotmail.com)
Date: 06/03/04


Date: Wed, 2 Jun 2004 21:35:23 -0400

Hi David,

Most of the articles I've read in the newsgroups and online forums recommend
the warm up scripts as you've suggested. This would probably be my best
option since currently I'm the only one on this test box and working on only
one or two applications for weeks at a time. It should be easy enough to
work with until I get a beefier box for my dev environment.

Thanks for your input.

    - Glen

"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:uIEsFP4REHA.1036@TK2MSFTNGP10.phx.gbl...
> IIS6 is designed to be frugal with system resources. Thus, Application
> Pools load "on-demand", and they unload "on-idle timeout".
>
> The delay on the first request is due to interaction between IIS process
> recycling and CLR's initialization costs. CLR initialization happens once
> per process, but IIS6 recycles processes based on many parameters, include
> idleness, to conserve resources. Thus, every time IIS6 recycles a process,
> subsequent managed code execution take the CLR initialization hit.
>
> IIS6 does not have any provisions to "pre-load" application pools --
doesn't
> make sense when Application Pools are designed to be loaded "on demand".
> You can do this yourself by making a request to the necessary application
> pools to trigger them to load. It is quite trivial to use the many
existing
> web request making tools and automate a little "warm-up" script to do
this.
>
> My suggestion for your non-production environment would be:
> 1. Turn off all the application pool recycling parameters except maybe the
> memory based ones (ASP.Net and Web Services can take advantage of it,
should
> they start hogging too much memory)
> 2. Make one request to spin up each of the application pools that you use
to
> host Web Services
>
> This should prevent you from hitting the delay caused by loading the CLR
> until you reboot the server.
>
> It is quite odd to optimize against "startup costs" when one frequently
> reboots the server because the act of rebooting incurs infinite startup
> costs for everything.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "Glen Appleton" <buglen@hotmail.com> wrote in message
> news:OR13jEmREHA.904@TK2MSFTNGP12.phx.gbl...
> Hi there,
>
> I have a development network setup with one server (2003 Ent) and one
> workstation (XP Pro SP1) that I'm using for learning and testing web
> services. I have all the updates on the 2003 server with IIS 6 and the
> latest FP extensions installed with Windows SharePoint Services and SQL
> Server Reporting Services running.
>
> After I boot up the server each day, the first time I log into any of the
> sites on the box it takes quite a bit longer than any subsequent visits
> until I have to reset IIS for some updates. Is this due to the idle time
> out settings on the web site application pools? Since this is basically a
> single user scenerio, how can I set it up to pre-load the application
pools
> as IIS starts up to get better performance?
>
> Thank you for any help you can provide.
>
> - Glen
>
>
>



Relevant Pages

  • Re: Windows Authentication, Single sign on and Active Directory
    ... your web server is probably a workgroup mode machine. ... Co-author of "The .NET Developer's Guide to Directory Services ... web service proxy client fails to connect due to authentication failure ... Windows authentication on the web services. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to return a user-defined data type object from a webservice?
    ... your client ... object coming from the server via the web service is in a different ... John Saunders | MVP - Windows Server System - Connected System Developer ... It's just not how Web Services works. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Windows Authentication, Single sign on and Active Directory
    ... web service proxy client fails to connect due to authentication failure ... the web services anyway, as it is generally important to protect any ... web server is also a member of the domain). ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Designing .NET applications
    ... I prefer logic assembly in a server. ... Imagine, you develop an object-oriented application, and business components ... Because I think that web services doesn't keep data: ... >> same client or business layer is running in the server, ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: .NET & Java Publish-Subscribe pattern
    ... If you go the web services route, remember to use only core types (types ... You may want to think about using SQL Server in all locations, ... and several clients in different cities running linux servers ... service clients on each linux server calling webmethods on the .NET2.0/ ...
    (microsoft.public.dotnet.framework.webservices)

Loading