Affected versions: Windows Server 2022

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Quick Checks
  3. Deep Diagnosis
  4. Primary Fix
  5. Verification
  6. Prevention & Hardening

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'

Illustrative mockup for windows-server-2022 β€” terminal_or_powershell
Diagnostics commands in PowerShell β€” Illustrative mockup β€” Progressive Robot
Illustrative mockup for windows-server-2022 β€” event_or_log_viewer
Event log verification for Windows Server 2022 β€” Illustrative mockup β€” Progressive Robot

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.