π ~1 min read
Table of contents
Symptom & Impact
Web applications return 503 errors as worker processes crash and IIS disables the pool via rapid-fail protection. Customer-facing APIs and portals become unavailable during load spikes. Monitoring shows healthy host metrics but failed HTTP checks.
Quick Checks
Inspect pool identity, CLR settings, and startup failures to determine whether config or code triggers the crash cycle.
Import-Module WebAdministration
Get-Item IIS:AppPoolsMyAppPool | Select state,managedRuntimeVersion,processModel
Get-WinEvent -LogName Application -MaxEvents 60 | Select TimeCreated,Id,ProviderName,Message
Deep Diagnosis
Capture failed request traces and check module dependencies, certificate bindings, and file ACLs.
appcmd list apppool /name:MyAppPool /text:*
appcmd list site
icacls C:inetpubwwwrootmyapp
Get-WebBinding
Primary Fix
Correct app pool identity permissions, remove invalid module references, and recycle safely with warm-up checks.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
Set-ItemProperty IIS:AppPoolsMyAppPool -Name processModel.identityType -Value ApplicationPoolIdentity
Remove-WebGlobalModule -Name BadModule
Restart-WebAppPool MyAppPool
iisreset /noforce
Verification
Pool should remain started through repeated synthetic transactions and no rapid-fail events should recur.
Get-Item IIS:AppPoolsMyAppPool | Select state
Invoke-WebRequest http://localhost/healthz -UseBasicParsing
Get-WinEvent -LogName System -MaxEvents 20 | Select Id,Message
Prevention & Hardening
Enable health probes, deploy staged config validation, and pin application dependencies in release pipelines.
Set-ItemProperty IIS:AppPoolsMyAppPool -Name recycling.periodicRestart.time -Value 00:00:00
appcmd add config -section:system.applicationHost/applicationPools /+'[name="MyAppPool"].failure.rapidFailProtectionInterval:00:10:00'


Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.