How to fix high RAM usage issue on Cloudways server with Next.js project
Unanswered
Black Caiman posted this in #help-forum
Black CaimanOP
I have a Next.js project that I have built on page router but I am using version 13.2.3. This project works fine on Vercel where I have deployed it and I don’t see any issues there. But when I deploy this project on Cloudways server, I face a big issue that the server’s RAM usage keeps increasing as the server gets more hits. If I open many tabs at once, the RAM usage goes up a lot. I don’t understand how to solve this issue. Please guide me to get out of this problem. Thanks
6 Replies
Black CaimanOP
I talked to Cloudways support and they said that there is a lot of memory leak due to public_html/next/dist/complied/jest-worker/processChild.js.
Cloudways support person message:
"public_html/next/dist/complied/jest-worker/processChild.js.
This is what causes the RAM using spike at each time"
"public_html/next/dist/complied/jest-worker/processChild.js.
This is what causes the RAM using spike at each time"
@Black Caiman this seems to be the similar issue as yours.
https://github.com/vercel/next.js/issues/45508#issuecomment-1547890677
https://github.com/vercel/next.js/issues/45508#issuecomment-1547890677
under serverless env of Vercel, instances are ephemeral so it won't be problem so much
@Black Caiman I talked to Cloudways support and they said that there is a lot of memory leak due to public_html/next/dist/complied/jest-worker/processChild.js.
did you solve the problem with cloudways?
or shifted to vercel?