Solved

I'm recycling w3wp.exe...and it hangs up! Anybody seen this before?

Posted on 2004-08-24
4
535 Views
Last Modified: 2008-02-01
Okay, I'm running IIS6 on my 2003 server, and I have it set to recycle every few hours or so to prevent my ASP.NET webservices from running out of memory.

2/3 times, this works fine...but sometimes the "new" w3wp.exe process starts, and then I get a hang up of 2-5 minutes!

During that period, CPU utilization is practically nothing, there's plenty of MB available, and all the ASP.NET requests just keep queueing.

The w3wp.exe will FINALLY kick in and do it's job, but not without a ton of thread abort exceptions from my applications.

I haven't found any major clues for this yet, so if anyone has an idea, inkling, or otherwise, I would GREATLY appreciate an assist.

Thanks!
0
Comment
Question by:Inward_Spiral
  • 2
  • 2
4 Comments
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 11886461
Likely there is a hung thread in the w3wp process that isn't terminating quickly.

The recycle process asks the w3wp to clean up and exit.  If the process doesn't exit in a given period of time IIS kills the process and starts a new one.

This could easily explain the lag time between the recycle start and the completion.

Are there any records in the event log that pertainto the w3wp process?

Dave Dietz
0
 

Author Comment

by:Inward_Spiral
ID: 11886709
Unfortunatlely, there's nothing in the event logs, except for the message "...has requested a recycle...", since I request a scheduled recycle specifically at that time.

Would you know what the "given time period" is? I'm guessing it's likely in machine.config, but which one would control thread timeouts?
0
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
ID: 11888645
The timeout period is configured using the ShutdownTimeLimit property in the metabase (check the Help files for specifics on how to set it.  It defaults to 90 seconds.

This may not be the cause of your issue but I have seen it cause similar behavior in at least one other case.

Dave Dietz
0
 

Author Comment

by:Inward_Spiral
ID: 11993008
Well, that's one way to do it, still have a lot of tweaking to do, so I may pop up with more questions.
Thanks!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question