Created
September 9, 2022 14:03
-
-
Save italosantana/123dab3366defb4602a148eff91a9e9f to your computer and use it in GitHub Desktop.
System limit for number of file watchers reached
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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