Skip to content

Conversation

@AgentEnder
Copy link
Member

Current Behavior

Every time a daemon connection is opened, we create a new interval and unref it. This results in the daemon checking its process termination at an ever increasing rate, which presents as increased memory usage and practically means the daemon is just doing a lot more work than it needs to in this area.

Expected Behavior

The interval is registered only on initial server startup.

Related Issue(s)

Fixes #29836

@AgentEnder AgentEnder requested a review from a team as a code owner November 18, 2025 21:37
@AgentEnder AgentEnder requested a review from Cammisuli November 18, 2025 21:37
@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 054fc9a
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/691d4e1f14e55700081a69af
😎 Deploy Preview https://deploy-preview-33532--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@AgentEnder AgentEnder changed the title fix(core): avoid leaking memory due by creating an unref'd interval foe each daemon connection fix(core): avoid leaking memory due by creating an unref'd interval for each daemon connection Nov 18, 2025
@vercel
Copy link

vercel bot commented Nov 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 19, 2025 5:03am

@AgentEnder AgentEnder force-pushed the fix/register-server-process-termination-interval-once branch from cd4e25c to 054fc9a Compare November 19, 2025 04:57
@nx-cloud
Copy link
Contributor

nx-cloud bot commented Nov 19, 2025

View your CI Pipeline Execution ↗ for commit 054fc9a

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 30m 42s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 12s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-19 05:32:42 UTC

@FrozenPandaz FrozenPandaz merged commit f5c876b into master Nov 19, 2025
20 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/register-server-process-termination-interval-once branch November 19, 2025 15:28
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nx Daemon - Memory leak

3 participants