Accumulating detached-flush.js processes #92805
SummaryI tend to restart my laptop about once a week. Over the course of a week of development I'll see processes accumulating related to telemetry. All I'm doing is switching Git branches, running Additional informationOperating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 25.3.0: Wed Jan 28 20:56:35 PST 2026; root:xnu-12377.91.3~2/RELEASE_ARM64_T6030
Available memory (MB): 36864
Available CPU cores: 12
Binaries:
Node: 24.11.1
npm: 11.6.2
Yarn: 1.22.22
pnpm: 10.33.0
Relevant Packages:
next: 16.2.3 // Latest available version is detected (16.2.3).
eslint-config-next: N/A
react: 19.2.5
react-dom: 19.2.5
typescript: 5.9.3
Next.js Config: |
Replies: 1 comment 2 replies
|
These are Next.js telemetry processes. The The accumulation happens because each Fix — disable telemetry permanently: npx next telemetry disableOr set the environment variable in your shell profile ( export NEXT_TELEMETRY_DISABLED=1You can also add it to your project's Kill the existing accumulated processes: pkill -f "detached-flush.js"After setting |
These are Next.js telemetry processes. The
detached-flush.jsscript runs as a separate detached Node.js process to flush anonymous usage statistics to Vercel asynchronously, without blocking your dev server.The accumulation happens because each
next devrun (including after branch switches) spawns a new detached telemetry process, and they are not always cleaned up when the dev server is stopped.Fix — disable telemetry permanently:
Or set the environment variable in your shell profile (
~/.zshrc/~/.bashrc):export NEXT_TELEMETRY_DISABLED=1You can also add it to your project's
.env.local:Kill the existing accumulated processes: