Process Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3014
Answer
Process Troubleshooting is the operational method for turning “the app is broken” into a bounded runtime question: which process instance, which thread/resource/operation, what changed, and what evidence separates application failure from dependency or system pressure.
Remember
- Bind all evidence to an exact process instance and time window.
- Snapshot metrics are hypotheses; repeatable deltas and event sequences are stronger.
- Hang, crash and high-resource problems need different evidence paths.
- Termination/restart is a recovery action and can erase useful state.
- Always verify the original user-facing operation after recovery.
First checks
Get-Process | Sort CPU -Desc | Select -First 10 Name,Id,CPU,WS— top processesGet-CimInstance Win32_Process -Filter "ProcessId=<pid>" | Select Name,ParentProcessId,CommandLine— command line and parenttasklist /v— processes with user and statustaskkill /PID <pid> /T— stop a process tree
Verify in this order
symptom → process evidence (events, counters, traces) → cause → fix
Where it usually breaks
First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.
Processes → Process Troubleshooting reference map
| Item | Meaning | Evidence boundary |
|---|---|---|
| Crash | Process exits unexpectedly | event/crash dump + exit timing |
| Hang | Process remains but does not progress | thread waits/stacks + responsiveness |
| High CPU | Sustained processor use | per-thread CPU + stack over interval |
| Leak/pressure | Resource grows over time | memory/handle trend + allocation/object evidence |
| Access/IO failure | Operation returns error | Procmon/log + permission/storage/network boundary |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3014