-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Dev server is taking too much memory in my Macbook & Windows machine #64183
Comments
I have a bunch of those processes running too but if I close VS Code they go away! I'd like to know how to disable them since it doesn't seem they are running my apps. |
I have created a Bare-starter nextjs app with some dependencies like firebase and antd One thing i noted |
Duplicate of #54708. App Router bundles node_modules, which Pages Router did not do, which might explain slightly more memory usage depending on the amount of modules, in the reproduction, which unfortunately is not really a reproduction as only the package.json is changed, so running it doesn't hold meaningful data. Looking at the package.json you're likely importing all components of antd though, which would hold meaningful memory usage as it's quite a large library if you're importing all of it. Going to close it as there's already another issue. |
Working on an older project with |
I downgraded to v14.1.3 as I have another - much smaller - project that only consumes around 500 MB and it's using that version.. In this bigger project, however, even 14.1.3 idles at 2.3 GB. Both use |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/serene-bogdan-v82nfh
To Reproduce
Current vs. Expected behavior
Current
Expected Behaviour
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 Binaries: Node: 20.12.1 npm: 10.5.0 Yarn: 1.22.22 pnpm: N/A Relevant Packages: next: 14.1.4 eslint-config-next: 14.1.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.4 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Link to the code that reproduces this issue
https://stackblitz.com/edit/stackblitz-starters-8kqwee
To Reproduce
Start The development server
Open the localhost server on browser to start compiling the components
Look at the process utilisation
You will find next-server utilising so much CPU and memory
Current vs. Expected behavior
Current:
next-server is taking so big memory space in the machine making other process starve for memory like vscode
Screenshot 2024-04-08 at 8 45 10 AM
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112
Binaries:
Node: 20.12.1
npm: 10.5.0
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 14.1.4
eslint-config-next: 14.1.4
react: 18.2.0
react-dom: 18.2.0
typescript: 5.4.4
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I tested it on both Mac and Windows OS and found same behaviour, i am developing a project using next14 and when i save a file, it takes so long to save it on my Brand new macbook pro M2.
Please folks, lets look at this issue as it is hindering the development flow of thousands of developers around the world
The text was updated successfully, but these errors were encountered: