You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to separate the CMS instance and its consuming applications into different services for Next.js apps. However, when using Payload as a dependency in another Next.js app, I noticed extremely high CPU usage. It spawns multiple Node.js processes in the background, causing my CPU temperature to reach around 100°C.
This issue occurs whenever a change is made in the code—each change spawns another Node.js process.
It could be an issue with my macOS environment or Node.js configuration, but I only experience this behavior when using Payload as a dependency.
Would be great if someone could reproduce this on their machine and confirm if it’s a general issue.
Describe the Bug
I wanted to separate the CMS instance and its consuming applications into different services for Next.js apps. However, when using Payload as a dependency in another Next.js app, I noticed extremely high CPU usage. It spawns multiple Node.js processes in the background, causing my CPU temperature to reach around 100°C.
This issue occurs whenever a change is made in the code—each change spawns another Node.js process.
It could be an issue with my macOS environment or Node.js configuration, but I only experience this behavior when using Payload as a dependency.
Would be great if someone could reproduce this on their machine and confirm if it’s a general issue.
Link to the code that reproduces this issue
https://github.com/sznski/payload-high-cpu-usage
Reproduction Steps
pnpm install -r
in repo rootpnpm dev
in repo rootconsole.log({posts})
,console.log(posts.docs.length)
and save files to refresh nextWhich area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: