Solved

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

Posted on 2004-08-24
4
526 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now