1echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2# that modifies the file watch limit to max 524,288 which consume approx. 512MB Ram for 64bit.
3# reduce that number to consume less memory.
4
5# to see if that did it run
6cat /proc/sys/fs/inotify/max_user_watches
7
8# you should see
9fs.inotify.max_user_watches=524288
10
1Ubuntu
2
3sudo gedit /etc/sysctl.conf
4
5Add a line at the bottom
6
7fs.inotify.max_user_watches=524288
8
9Then save and exit!
10
11sudo sysctl -p
1echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
2