Re: Problems with IIS 6.0 and downloading images.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 12/03/04


Date: Thu, 2 Dec 2004 21:24:29 -0800

Try running "PerfMon" -- IIS has counters for this sort of information. I
suggest reading MSDN documentation on the counter of interest and playing
around with PerfMon for a while.

If the issue is easy to reproduce -- can you give me EXACT instructions on
how to reproduce the environment that will illustrate the issue, as well as
the request sequence to produce the issue, I can try to repro.

If I cannot reproduce it using your instructions, there is no way for me to
troubleshoot it or have a developer look at it. So, it is to your advantage
to be detailed and not miss any important points (or possible, reinstall
using your steps to verify how easily reproducible the issue actually is).

Your statement of "static files" and "worker process failed to shutdown
within time limit" conflict with each other. Static file implies that no
processing is done on the server other than network IO -- which should not
"hang" -- so either your server is not really serving static files (for
example, you have an ISAPI Filter configured or a scriptmap for the file
extension or "*") or some other network IO is hanging. Your problem is
indicative of "something else" going on with the server outside of IIS.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Amil Hanish" <amilhanish@hotmail.com> wrote in message
news:%23Y7QD8z1EHA.1408@TK2MSFTNGP10.phx.gbl...
First, the website is in it's own app pool with default settings.  The site
is extremely light...like maybe 1-2 users per day.  But, when testing, I can
reproduce this problem soooo easy.  I don't know how to view the current
connections to this specific site and how to look at the app pool real time.
Any help would be appreciated.
Amil
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:#VQsxX9wEHA.3624@TK2MSFTNGP09.phx.gbl...
> What is your AppPoolQueueLength on the AppPool, and what does it look like
> during this slow time.  How many connections are maintained on the server
> during this time as well.
>
> Also, consider turning off KeepAlives to prevent stress clients from
hanging
> on to connections (and system resources), especially if the servers just
> serve up images.
>
> Are your JPG/GIF files on the server's HDD or on some attached UNC share?
>
> > A process serving application pool 'DefaultAppPool' exceeded
> > time limits during shut down. The process id was 'XXX.
> This indicates that at least one request to an application served by this
> ApplicationPool took over 90 seconds and did not finish (90 seconds is
> default shutdown time limit).
>
> > A worker process with process id of 'XXXX' serving application
> > pool 'DefaultAppPool' has requested a recycle because the
> > worker process reached its allowed processing time limit.
> This is the periodic restart time limit.  This would be expected.  I
believe
> this is not logged to the event log unless you change configuration to do
so
> (because prescriptive recycles are normally not logged -- only
> reactive/unexpected recycles are logged).
>
> Seeing these things together, it suggest that something on the server
seems
> to be in an infinite loop or taking a lot of time.  Mostly likely a hang
of
> something that is running on the server.  I would check for any custom
ISAPI
> Filters/Extensions configured on the server.
>
> -- 
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "Jacob" <Jacob@discussions.microsoft.com> wrote in message
> news:E319E0EF-C750-4B19-BF1A-F6B26DED83DF@microsoft.com...
> I am having a problem with IIS 6.0.  I have not had this problem with 5.0.
>
> I have 9 servers that serve up images only.  JPGs and GIFs.  No ASP, no
HTML
> files, no ColdFusion.  The server is running Windows 2003 (fully patched),
> IIS6, and Norton AV (configured to bypass JPG and GIF extensions for now.)
> Dual Xeon 3.0 GHz, 2 MB RAM, and SCSI U320 Hard Drives.  So the server
> hardware is not a problem, I think.
>
> What is happening is that after a while, like maybe 6 hours, the servers
> would take for ever to serve up the images.  I could be waiting forever
for
> the images to finish downloading, even on my network.  I would have to
stop
> and restart the website to fix it, then the problem will occur again
within
> a
> few hours.  This happens across all nine servers.  Even with pages the
> request 5 or 6 images.
>
> If I look in the Event Viewer, I see the following two events occurring:
>
> A process serving application pool 'DefaultAppPool' exceeded time limits
> during shut down. The process id was 'XXX.
>
> A worker process with process id of 'XXXX' serving application pool
> 'DefaultAppPool' has requested a recycle because the worker process
reached
> its allowed processing time limit.
>
> I looked int he HTTP log, and I found the following error:
>
> Timer_MinBytesPerSecond
>
> I have changed the MinFileBytesPerSec value to 480, 1000, even 0 (from the
> default 240) in the MetaBase.xml.  I have also set the App Pool to recycle
> worker threads every 30 minutes, number for request 35000, max virtual
> memory
> to 768.  Idle timeout is 10 minutes and web garden is 2.  I have played
with
> the App Pool settings all week and have not come up with a setting that
> works
> for me.
>
> The servers maintain about 40 to 60 simultaneous connections each and the
> servers are not tasked at all.  CPU is around 3 to 5% and tons of RAM
> available.
>
> Anybody have any other suggestions?  I have googled and try many
> suggestions, but nothing as helped.
>
> Big thanks in advance
> Jacob
>
>


Relevant Pages

  • Re: IISState log (IIS slow)
    ... It doesn't matter if the file does not have any ASP code in it or not. ... former is handled directly by the IIS Static file handler, ... which under any sort of appreciable load means your server is ... reached its allowed processing time limit. ...
    (microsoft.public.inetserver.iis)
  • Re: Problems with IIS 6.0 and downloading images.
    ... the website is in it's own app pool with default settings. ... How many connections are maintained on the server ... >> worker process reached its allowed processing time limit. ...
    (microsoft.public.inetserver.iis)
  • Re: IISState log (IIS slow)
    ... But it's only way to return IIS to normal life. ... > It doesn't matter if the file does not have any ASP code in it or not. ... which under any sort of appreciable load means your server is ... > reached its allowed processing time limit. ...
    (microsoft.public.inetserver.iis)
  • Re: Server 2003 - IIS - NLB and misc...
    ... NIC 2 on Server 2 is currently disabled but when I was testing it ... I've been working with a website that uses IIS6 - PHP 4.4.7 and we ... In IIS website setup application pool for the site: ... Shutdown time limit = 10 ...
    (microsoft.public.windows.server.networking)
  • Re: .NET 2.0 Master Pages problem
    ... That's only true for IIS 6.0, which only comes with Windows 2003 Server. ... IIS can only run one version of ASP.NET at a time in each app pool. ...
    (microsoft.public.dotnet.framework.aspnet)