Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save italosantana/123dab3366defb4602a148eff91a9e9f to your computer and use it in GitHub Desktop.
Save italosantana/123dab3366defb4602a148eff91a9e9f to your computer and use it in GitHub Desktop.
System limit for number of file watchers reached
1. Check your actual limit
$ cat /proc/sys/fs/inotify/max_user_watches
2. Adjust your new limit in the file /etc/sysctl.conf:
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
The above command added the line "fs.inotify.max_user_watches=524288" to the /etc/sysctl.conf file and then asked the kernel to reload the new settings.
3. Check again your new actual limit
$ cat /proc/sys/fs/inotify/max_user_watches
result: 524288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment