Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I can't seem to find information on how to disable overlapped application pool recycling in IIS. Can anyone help me out?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

The command should be:

cd \inetpub\adminscripts
adsutil SET w3svc/AppPools/DisallowOverlappingRotation "1"

Or, you can set it for a specific app pool with

adsutil SET w3svc/AppPools/AppPoolName/DisallowOverlappingRotation "1"

Be sure to replace "AppPoolName" with your app pool name.

I didn't test it, I typed it based on looking at the metabase, but it's going to be something very similar. If my first guess didn't work, let me know and I'll update it.

I'm curious why you want to set this. When are the overlapping app pools an issue?

share|improve this answer
    
The service in question requires exclusive access to TIBRV ledger files. With overlapped recycling we occasionally see errors if the second app pool process starts up prior to the first completely shutting down. –  user26068 Dec 14 '09 at 19:52
    
Thanks for the reply. Sounds like a fairly unique requirement, but a valid reason to disable the overlapping. –  Scott Forsyth - MVP Dec 14 '09 at 23:49
    
Certainly an uncommon situation. My scenario, a db4o database. I wonder if the same happens with the new in process sql express. Was hoping for a .config setting :(. –  eglasius Apr 14 '11 at 14:52
add comment

I have just set this up (thanks to the previous answer for finding the right key) - it is not settable on individual app pools in IIS6, but must be set for them all:

AdsUtil //NoLogo set "w3svc/AppPools/DisallowOverlappingRotation" "1"

In IIS 7 it is settable for each app pool, and can be done in the GUI or using the Powershell IIS provider:

$recycling = Get-ItemProperty "iis:\apppools\${appPool}" -name "Recycling"; $recycling.disallowOverlappingRotation = $True; Set-ItemProperty "iis:\apppools\${appPool}" -name "Recycling" -value $recycling;

share|improve this answer
    
-1 It is settable per application pool in IIS 6, as confirmed in the IIS Documentation. –  Holistic Developer Jun 12 at 21:05
add comment

Your Answer

 
discard

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