fix

CPU high because infinite loop

If CPU is pegged and one process is responsible, an infinite loop or busy-wait pattern is a common culprit.

Common symptoms

Likely causes

Evidence to look for

Same function repeats in profiling samples
CPU stays high with no progress
Process restarts clear the issue temporarily

What it usually means

The process is repeating the same work endlessly without making forward progress.

What to do next

  1. 1Add exit conditions and sleep intervals
  2. 2Log iteration counts to prove the loop
  3. 3Profile to identify the spinning function

See what's causing your CPU

cpum.ai turns CPU, process, disk, and memory signals into plain-English explanations with evidence.

Open cpum.ai

Related

CPU high because infinite loop | cpum.ai