?
Solved

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

Posted on 2004-08-24
4
Medium Priority
?
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

765 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