Closed c0ntradicti0n closed 1 year ago
Hi, this is fixed in #53495 already, available in v13.4.13-canary.12 and above! I'll let the team know that we should cut a new stable release soon.
This happens to me to the point where I have to restart WSL due to low memory. In previous versions the same thing happened, but the process was invoked by jest-workers/proccessChild.js
@duducv please read https://github.com/vercel/next.js/issues/53571#issuecomment-1665602130
If this is still happening after upgrading, please open a new issue with a reproduction! :pray:
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.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
I can't. Neither I can show the code, nor I can signIn with credentials in a special browser.
To Reproduce
We are using the old "pages" dir, with dynamic routes in nested folders, happens in
development
mode.Seems to be the the case, when looking at other issues, that this might be also happening somewhere else, but I don't have the time to reproduce such an intricate app as we have just for reproducing.
Is certainly also connected to this: https://github.com/vercel/next.js/issues/50332
NextLink is also built in and regarding it's prefetching default (https://nextjs.org/docs/pages/api-reference/components/link) this may cause further workload for the router.
We have less than 30 pages there.
Describe the Bug
System is getting super busy and it's slow (1min to wait for it for start, for page navigation) It's unbearable.
Maybe there is in general a searching issue and there is, when the router reads the pages from the server and from the dynamics a chance to reduce results to query and one could use a normal search algorithm to get the wanted page.
But why does it start multiple such processes?
I saw from inspecting the process, that each process opens up this file
.next/trace
. What does it collect and why is it so big? Can we disable it?Where are the different workers started?
After some time I sometimes get running out of file watchers, that are appearently listening to my whole home dir:
Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home//apps/tbdk' Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home//Work/web-frontend/apps' Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home//Work/web-frontend' Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home//Work' Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home/*' Watchpack Error (watcher): Error: EMFILE: too many open files, watch '/home'
Expected Behavior
Not starting many processes occupying 1.5GB of RAM and being slow.
Which browser are you using? (if relevant)
does not matter, firefox and chrome
How are you deploying your application? (if relevant)
nx run proji:serve:development