The VScode process takes up too much CPU resources, causing the system to respond slowly
- Recently, I discovered a problem when using the remoteSSH function of VS Code. The response of the connected remote machine suddenly became very slow.
Use the top command to find that there is a rg process with a particularly high occupation
After ps -ef | grep rg
checking with the command, it is found that it is a process started by VS Code
- Solution:
1. Open the settings of VS Code, enter in the search boxSearch: Follow Symlinks
to cancel the check here, save, and restart VS Code
2. Opensettings.json
the input of VS Code"search.followSymlinks": false
, save and restart, and the problem can be solved