Debian, set max number of inotify watches

Add temporarily:

  • Run sudo sysctl fs.inotify.max_user_watches=524288 (with preferred value at the end).

Add permanently (more info):

  • put fs.inotify.max_user_watches=524288 into your sysctl settings: /etc/sysctl.conf