This content originally appeared on DEV Community and was authored by Aliakbar Salehi
Today I found my system super slow, and CPU usage was going to a high level.
after deep investigation, I found some notable cases of complex and CPU usage:
last week my dev laptop (MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports) went super slow. The fan was working at high speed, and it sounds look like a bitcoin miner.
I was curious to see what happened.
Nothing was working correctly, really weird!.
I use my dev laptop just for working purposes.
I opened the Activity monitor and checked processes and app resource usage.
CPU usage was normal, then I moved to the memory, it was fine, and then I moved to the disk usage. OH! There were just a few megabytes free.
How it was possible, I use this Macbook just for working purposes. There are some cloned repo and essential software for development such as ( docker, vscode, xcode and ...).
I found a valuable tool to monitor which app occupied disk storage.
I used the grandperspectiv to visualize the HDD usage.
- docker.raw (64GB )
- node_modules folders
- Application cache (chrome, Mozilla, developer tools, yarn and nvm)
solutions:
- you can change the size of docker.raw in docker settings ( have a look at this link
- I suggest using this command in your home folder to remove node_modules in all old packages
find . -name 'node_modules' -type d -prune -exec rm -rf '{}'
- clean npm and yarn cache
now I cleaned my HDD and freed up to 100GB
This content originally appeared on DEV Community and was authored by Aliakbar Salehi
Aliakbar Salehi | Sciencx (2021-09-24T14:59:00+00:00) OH! No, My Macbook is super slow ? —-who occupied my laptop resources —. Retrieved from https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.