OH! No, My Macbook is super slow ? —-who occupied my laptop resources —

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. …


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.
first run

  • 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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » OH! No, My Macbook is super slow ? —-who occupied my laptop resources —." Aliakbar Salehi | Sciencx - Friday September 24, 2021, https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/
HARVARD
Aliakbar Salehi | Sciencx Friday September 24, 2021 » OH! No, My Macbook is super slow ? —-who occupied my laptop resources —., viewed ,<https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/>
VANCOUVER
Aliakbar Salehi | Sciencx - » OH! No, My Macbook is super slow ? —-who occupied my laptop resources —. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/
CHICAGO
" » OH! No, My Macbook is super slow ? —-who occupied my laptop resources —." Aliakbar Salehi | Sciencx - Accessed . https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/
IEEE
" » OH! No, My Macbook is super slow ? —-who occupied my laptop resources —." Aliakbar Salehi | Sciencx [Online]. Available: https://www.scien.cx/2021/09/24/oh-no-my-macbook-is-super-slow-%f0%9f%98%b1-who-occupied-my-laptop-resources/. [Accessed: ]
rf:citation
» OH! No, My Macbook is super slow ? —-who occupied my laptop resources — | Aliakbar Salehi | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.