Visial Studio Code (VSCode): The Dump
This is common Visual Studio Code problem for Remote SSH editing.
Warning: inotify watchers?
This is a part of
inotify filesystem options. A sensible setting is typically 100000 or more on a development machine and Ubuntu’s default of 8K is way too little.
Retrieve the current amount:
sysctl fs.inotify # or: cat /proc/sys/fs/inotify/max_user_watches
Retrieve a number of opened files for the user:
lsof | grep inotify | wc -l
We can increase the values like this
sysctl -n -w fs.inotify.max_user_watches=1048576 sysctl -n -w fs.inotify.max_user_instances=512
But to make it permanent, it must being added to
echo fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- Increasing the amount of inotify watchers
- How to get the number of inotify watches in use
- How do I find out what inotify watches have been registered?
- Lists all the owners of inotify watchers and their watcher count: fatso83/dotfiles