Re: OT-ish: possible for asp.net 1.1 on IIS5 to bring server down due to CPU consumption?

Chris Anderson <[email protected]> Mon, 2 Jun 2008 19:42:19 +0100
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
> I need a quick sanity check on something--we've got a 3rd party
asp.net
> v1.1 app installed on a machine w/IIS v5.  Our admin suspects that
this
> app is what brought the machine down recently.  The IIS "application
> protection" setting is "Medium (Pooled)".  The process that pegged the
> cpu shortly before the box stopped responding to web requests was
> inetinfo.exe.

Firstly "brought a machine down" and "stopped responding to web
requests" are different things.

Was the server as a whole killed, or was just ASP.NET affected?

If ASP.NET takes a high proportion of CPU, it could be down to a number
of things, including high load, it's stuck in a tight loop, or there are
lots of garbage collections occurring.

The first can possibly be checked using the IIS logs.
The second can be difficult to find unless you know the exact
circumstances of the cause, but will be a bug in the app.
The last can be determined using the %Time in GC perf counter and is
difficult to give advice for as there are many causes (mostly
inefficient coding)

Most of the time however you would hit the ASP.NET limits (see the
processModel attributes[1]) and ASP.NET will recycle the process. (So
the site may be unresponsive for a short while, but then will recover as
if nothing happened - although in-memory session state would be lost)

More info would be required to know whether the ASP.NET app caused the
problem, but overall yes, it is possible, although there are mechanisms
in place to recover

Chris

[1] http://msdn.microsoft.com/en-us/library/7w2sway1.aspx

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com