Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node process on Windows 11 consumes memory continuously, increasing about 3mb a second without being released #3976

Open
scotscoder opened this issue Jan 1, 2025 · 4 comments
Labels
Bug Something isn't working

Comments

@scotscoder
Copy link

Description

When running wails dev, the node process gradually consumes more and more memory, slowing down the host system. As observed, it increases by about 2.5 to 6mb per second on my system. GIF attached.

This happens with a completely new Svelte project. I will test it with other JS frameworks as well and update this issue.

Screen.Recording.2025-01-01.133325.mp4

To Reproduce

Use Windows 11.

  1. Init a new wails project using Svelte
  2. Run wails dev
  3. Watch the memory increase in Task Manager

Expected behaviour

Memory use should stay constant or "breathe" slightly up and down.

Screenshots

Screencap attached above

Attempted Fixes

Found a closed bug on the SvelteKit repo that mentioned a similar problem. It may be upstream from even that, but I'd rather check before we dive deeper.

System Details

# Wails
Version | v2.9.2

# System
┌─────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                                   |
| Version      | 2009 (Build: 26100)                                                              |
| ID           | 24H2                                                                             |
| Go Version   | go1.23.4                                                                         |
| Platform     | windows                                                                          |
| Architecture | amd64                                                                            |
| CPU          | AMD Ryzen 7 5800H with Radeon Graphics                                           |
| GPU 1        | NVIDIA GeForce RTX 3060 Laptop GPU (NVIDIA) - Driver: 32.0.15.5613               |
| GPU 2        | AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.) - Driver: 31.0.12002.1002 |
| Memory       | 16GB                                                                             |
└─────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version        |
| WebView2   | N/A          | Installed | 131.0.2903.112 |
| Nodejs     | N/A          | Installed | 22.12.0        |
| npm        | N/A          | Installed | 10.9.0         |
| *upx       | N/A          | Installed | upx 4.2.4      |
| *nsis      | N/A          | Installed | v3.10          |
└─────────────── * - Optional Dependency ────────────────┘

# Diagnosis
 SUCCESS  Your system is ready for Wails development!

Additional context

No response

@scotscoder scotscoder added the Bug Something isn't working label Jan 1, 2025
@scotscoder
Copy link
Author

I only noticed this issue because it started increasing my laptop fan when it reached 5GB of RAM consumed.

@scotscoder
Copy link
Author

This is after 30 minutes.

Screen.Recording.2025-01-01.142119_stripped.mp4

@scotscoder
Copy link
Author

It does seem to partially garbage collect periodically, just not very much.

@leaanthony
Copy link
Member

Sounds like an issue with Vite. Have you tried upgrading it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants