Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a way to limit long-running processes in iis 7? for example, if I have ASP.NET application and it takes longer than 10 minutes to generate response, I want it recycled.

how can I configure this?

share|improve this question

Take a look at the Advanced Settings for your Application Pool. Either the "Ping Enabled" or "Shutdown Time Limit" options in the Process Model section could be what you are looking for. Here is the configuration reference for Process Model from

share|improve this answer
the process responses to the ping, but if I try to manually recycle the pool, it gets terminated, since it can't shutdown gracefully because it's still working on generating a response. – Sumrak Jul 6 '09 at 16:06
If it is still responding to pings, you probably need to look at the shutdown time limit rather than the ping option. If the app pool is still actively processing information though, I don't think anything will be able to shut it down cleanly. – MattB Jul 6 '09 at 19:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.