Does recycling the IIS7 application pool kill any currently executing requests?
Asked Answered
E

2

6

Does recycling the IIS7 application pool kill any currently executing requests? Or does it wait for all requests to complete (like a drain-stop)?

I don't want the recycling rules to cause intermittent errors from my WCF sites.

Thanks

Entrenchment answered 12/4, 2011 at 4:29 Comment(0)
T
8

No.

By default, the WWW service establishes an overlapped recycle, in which the worker process that is to be terminated is kept running until after a new worker process is started.

This is from the Documentation for IIS6 and I am sure it applies for IIS7.

If your web service requests are long-running, you might consider increasing the shutdown timeout.

Timbuktu answered 12/4, 2011 at 5:30 Comment(2)
The answer seems to be yes and no. No, the processes can be staggered if there is more than one process running; or yes if a long-running request exceeds the shutdown timeout. I'll see what shutdown timeout values I'm using and make sure that they exceed my longest running service call. Thanks.Entrenchment
"Greg. Sorry I was confused and thought I was editing my post :-) I realised it later and removed my editing. Apologies.Achromatize
A
1

Yes. Recycling an application pool causes the WWW service to shut down all running worker processes that are serving the application pool, and then start new worker processes.

This is from the Documentation for IIS6 and I am sure it applies for IIS7

Achromatize answered 12/4, 2011 at 4:35 Comment(1)
If you read until the DisallowOverlappingRotation parameter part, you'll that the answer depends on how this parameter is set.Portis

© 2022 - 2024 — McMap. All rights reserved.