Next.js Discord

Discord Forum

CPU usage goes to 100% when running next build

Answered
Anay-208 posted this in #help-forum
Open in Discord
When I'm attempting to build my app to get it available for production, my cpu usage spikes at 100%.

What can I do?
Answered by averydelusionalperson
I mean, it has to be pretty low cpu, so it's gonna take much time, but it shouldn't get stuck
View full answer

24 Replies

like it stops respondin
it's normal ig?
it will take high amount of cpu while building
@averydelusionalperson it will take high amount of cpu while building
it stops responding at all, I've to stop that process in order to continue using it
even this process is stuck
one time or everytime?
@averydelusionalperson one time or everytime?
almost everytime
this is production server right?
ye
and the app only has 3-4 pages
shared cpu?
@averydelusionalperson shared cpu?
its a VPS
oh
how much is the cpu?
I mean, it has to be pretty low cpu, so it's gonna take much time, but it shouldn't get stuck
Answer
@averydelusionalperson I mean, it has to be pretty low cpu, so it's gonna take much time, but it shouldn't get stuck
and now it got killed
1 cpu
ugh
tried deleting .next?
If I should upgrade, to how many vcpus should I @averydelusionalperson ?
atleast 2 or 3 Imo, I have 2, and it works prety good
aight
🫡