fseventsd grew to 24 GB on my Mac, 800 times Apple's own budget, and never recovered on its own
How to spot it, why it stays stuck after the load is gone, and how to fix it without a reboot.
macOS's file-event daemon, fseventsd, grew to 24 GB on my MacBook Pro and kept one CPU core busy for two days. Apple's own memory budget for it is 30 MB. The burst of file activity that set it off was over by then; the daemon never came back down. I run many AI coding agents on this machine, so here is what I measured, what I could not prove, and a check you can run yourself. I call it a leak below; strictly, it is memory that only grew.
TL;DR
- Spot it.
top -l 1 -stats pid,mem,cmprs,ports -pid $(pgrep -x fseventsd). A healthy daemon sits in single or low double-digit megabytes. Mine showed 24G, with 18G compressed.
- Compare with Apple's budget.
launchctl print system/com.apple.fseventsd | grep 'jetsam memory limit (active' prints a soft limit of 30 MB. Jetsam is the macOS memory-limit enforcer; a soft limit is not enforced by killing the process.
- Do not wait for it to heal. The file-event flood subsided on 29 Sep. The daemon's CPU use went up afterwards, to 97–98 % of a core for two days.
- Save evidence first.
sudo ls -laT /System/Volumes/Data/.fseventsd and sudo sample $(pgrep -x fseventsd) 5. A restart erases the event history.
- Fix without a reboot.
sudo kill -TERM $(pgrep -x fseventsd); if it does not die within ten seconds, sudo kill -9 $(pgrep -x fseventsd) (another user needed that at 8.9 GB). launchd respawns it at once. launchctl kickstart -k is refused by SIP (System Integrity Protection, which shields Apple's services even from root).
Quick start
curl -fsSLO https://raw.githubusercontent.com/talkstream/fseventsd-runaway/main/fseventsd-check.sh
less fseventsd-check.sh && bash fseventsd-check.sh
No sudo, changes nothing, prints OK, WARN or RUNAWAY (exit code 0, 1 or 2; 3 if it cannot measure), --json for scripts and --fast to skip the 5-second CPU sample. fseventsd-restart.sh saves evidence, restarts the daemon and measures again; it refuses to restart if it could not save the evidence. Read it before running it with sudo.
For Claude Code users there is a plugin that runs the same check, memory only and in well under a second, at every session start, and stays silent while the daemon is healthy:
/plugin marketplace add talkstream/fseventsd-runaway
/plugin install fseventsd-health@fseventsd-runaway
1. Symptom
The machine is a 14-inch MacBook Pro, M3 Pro, 18 GB, macOS 27.0 (26A428), up 20 days 19 hours. It runs heavy agentic development: Claude Code sessions with subagents, Node, pnpm, vitest, Playwright, Python hooks, MCP servers, Docker through Colima. A saved top snapshot showed:
fseventsd at 121 % in top (several threads; ps showed 5 seconds of CPU per 5 seconds of wall time: one core, continuously), 57 hours of CPU time since boot.
- Swap at 13,548 MB of 14,336 MB.
mediaanalysisd at 108 %, kernel_task at 65 % and WindowServer at 42 %: fseventsd was not the only busy process. Why kernel_task was busy, I do not know; Apple says it helps manage CPU temperature.
2. The suspect and Apple's own 30 MB budget
fseventsd tells apps what changed on disk and keeps a persistent per-volume history of those events.
footprint reported 24 GB for the process, all of it "Malloc Small" (the heap class for small objects) in 8,162 regions. top agreed: 24G memory, 18G of it compressed.
Apple states the daemon's budget in its launchd job:
$ launchctl print system/com.apple.fseventsd | grep 'jetsam memory limit (active'
jetsam memory limit (active, soft) = 30 MB
24 GB is about 800 times that. The limit is soft, so nothing acted on it.
3. Timeline: the load passed, the damage stayed
Apple's own reports in /Library/Logs/DiagnosticReports let me rebuild the growth. Memory figures are as the tools print them, in binary units; Jetsam reports count 16 KB pages.
| When (GMT+7) | fseventsd memory | Source |
|---|
| 27 Sep 11:29 to 28 Sep 07:59 | 10 to 42 MB (normal) | disk-writes report |
| 28 Sep 10:15 | 0.04 GB | Jetsam event |
| 28 Sep 23:20 | 1,745 to 1,834 MB (about 1.7 GB) in about 2 min | cpu_resource report |
| 30 Sep 01:39 | 7.93 GB, the largest process on the Mac | Jetsam event |
| 30 Sep 06:27 | 11.17 GB | Jetsam event |
| 1 Oct 23:20 | 24 GB | footprint |

The same reports record the daemon's CPU time, so I can compute what share of one core it used between them:
| Period | Share of one core |
|---|
| Boot (11 Sep) to 28 Sep 10:15 | 1.5 % |
| 28 Sep 10:15 to 30 Sep 01:39 | 16 % |
| 30 Sep 01:39 to 06:27 | 97 % |
| 30 Sep 06:27 to 1 Oct 23:00 | 98 % |