IIS worker processes
Use this runbook for IISWorkerProcessFailure,
IISWorkerProcessStartupFailure and IISWorkerProcessesMissing.
1. Check process state
Get-IISAppPool | Format-Table Name,State
Get-Process w3wp -ErrorAction SilentlyContinue |
Select-Object Id,ProcessName,StartTime,CPU,WorkingSet
2. Inspect Windows evidence
Get-WinEvent -FilterHashtable @{
LogName='System'
StartTime=(Get-Date).AddMinutes(-30)
} | Where-Object {
$_.ProviderName -match 'WAS|W3SVC'
} | Select-Object TimeCreated,ProviderName,Id,LevelDisplayName,Message |
Format-List
Application crashes:
Get-WinEvent -FilterHashtable @{
LogName='Application'
StartTime=(Get-Date).AddMinutes(-30)
} | Where-Object {
$_.ProviderName -match 'Application Error|\.NET Runtime'
} | Select-Object TimeCreated,ProviderName,Id,LevelDisplayName,Message |
Format-List
3. Recovery
If the worker process is repeatedly crashing, preserve evidence before a recycle. If the application has an approved recovery procedure, recycle the pool once:
Restart-WebAppPool -Name '<APP_POOL>'
Repeated crashes require application/runtime investigation.
4. Verify
Confirm a new w3wp.exe process exists, the pool is running, traffic is
successful, and the alert resolves.