Next.js Discord

Discord Forum

laptop slow when my nextjs app is running using npm run dev

Answered
Anay-208 posted this in #help-forum
Open in Discord
Once I run my nextjs server, my laptop like hangs a lot and gets slow. How do I identify what do I need to upgrade like ram.

I’ll sharing more details in a while
Answered by Plott Hound
yeah you need a ram upgrade or close some other apps
View full answer

24 Replies

@Plott Hound as you told to ping
@Anay-208 <@578864362882727958> as you told to ping
Plott Hound
is this specifically happening on all your projects or just one? did you try it with an empty create-next-app?
All projects. Once, I started created a project, and 1 hour into creating, it started lagging
I’ve tried with 2 projects
Plott Hound
how much ram do you have?
@Plott Hound I’m awaiting your reply
8GB is too less for development imo
@Ray 8GB is too less for development imo
I can upgrade it. Should I upgrade to 16 GB ram
Or how about I use GitHub Codespaces?
you should upgrade it
@Anay-208 Or how about I use GitHub Codespaces?
would be the same
@Ray you should upgrade it
Ok
@Ray would be the same
How? Because nextjs will run in the server
@Anay-208 How? Because nextjs will run in the server
you open it with browser and browser will still use the ram on your computer
I'll test rn
@Ray you open it with browser and browser will still use the ram on your computer
Yellow croaker
I think its not really The same?
Codespace uses The cloud computer hardware.
https://github.com/features/codespaces
But i agree with Ray that upgrading prolly is still better
well you can try it but browser will definitely use memory on the pc
also the dev server prob does lots of requests which may be more expecting low latency... its prob way better to be localhost anyway
its 73% rn, or its usually 85-90%
it only affects by a little so not worth it
Plott Hound
yeah you need a ram upgrade or close some other apps
Answer
@Plott Hound yeah you need a ram upgrade or close some other apps
I'll be getting my RAM upgraded soon