laptop slow when my nextjs app is running using npm run dev
Answered
Anay-208 posted this in #help-forum
Anay-208OP
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
I’ll sharing more details in a while
24 Replies
@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?
Anay-208OP
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?
Anay-208OP
@Plott Hound I’m awaiting your reply
8GB is too less for development imo
@Ray 8GB is too less for development imo
Anay-208OP
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 would be the same
Anay-208OP
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
Anay-208OP
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
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
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
Anay-208OP
I'll be getting my RAM upgraded soon