macOS: -bash: fork: Resource temporarily unavailable (process limit reached)
The user hit the maximum number of processes (kern.maxprocperuid) — usually a fork bomb or runaway child processes.
fork: Resource temporarily unavailable-bash: fork: Resource temporarily unavailablezsh: fork failed: resource temporarily unavailablefork: retry: Resource temporarily unavailableCannot fork: resource temporarily unavailable Meaning
Kill runaway processes (killall -9 name, or pkill), check counts with ps -ax | wc -l, and raise limits only if justified (sudo sysctl kern.maxprocperuid, ulimit -u). Typical triggers: infinite loops spawning subprocesses, zombie processes, test runners.
Common causes
- Fork bomb or loop spawning processes
- Zombie processes accumulating
- Low per-user process limit
- Tool spawning too many workers
- Multiple IDE/test watchers
⚡ Quick fix
- Kill the offender:
killall -9 name ps -axo pid,ppid,comm | sort -k2 | uniq -c | sort -rn | head- Raise
ulimit -utemporarily if needed
Detailed fix by platform
macOS
sysctl kern.maxproc kern.maxprocperuid && ps -ax | wc -l
How to diagnose
- Count — Processes vs limit?
- Source — Which command spawns?
- Zombies — Present?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in macOS
- is damaged and can’t be opened macOS: “App” is damaged and can’t be opened. You should move it to the Trash.
- Operation not permitted (macOS privacy) macOS: Operation not permitted — Terminal/app lacks Full Disk Access (TCC privacy protection)
- zsh: command not found: brew macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026