0

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?

Sumrak
  • 195
  • 1
  • 3
  • 10

1 Answers1

1

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 iis.net:

http://www.iis.net/ConfigReference/system.applicationHost/applicationPools/add/processModel

MattB
  • 11,194
  • 1
  • 30
  • 36
  • 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 06 '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 06 '09 at 19:09