Solved

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

Posted on 2004-08-24
4
537 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

821 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