Pcornel
Windows · Processes

Process Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3014

Back to the Topic

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 processes
  • Get-CimInstance Win32_Process -Filter "ProcessId=<pid>" | Select Name,ParentProcessId,CommandLine — command line and parent
  • tasklist /v — processes with user and status
  • taskkill /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

ItemMeaningEvidence boundary
CrashProcess exits unexpectedlyevent/crash dump + exit timing
HangProcess remains but does not progressthread waits/stacks + responsiveness
High CPUSustained processor useper-thread CPU + stack over interval
Leak/pressureResource grows over timememory/handle trend + allocation/object evidence
Access/IO failureOperation returns errorProcmon/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

Confirmation

Confirm action

Continue?