In thid post , we will fix System limit for number of file watchers error .
this error reached because the number of files monitored by the system has reached its limit.
well linux use inotify to monitoring filesystem events .
To know the current limit of max_user_watches :
> `cat /proc/sys/fs/inotify/max_user_watches`
and the current notify user instance limit :
> `cat /proc/sys/fs/inotify/max_user_instances`
If you want to fix error you need to increase the number of max user watches by running the following command:
> `sudo sysctl fs.inotify.max_user_watches=524288`
and increase the number of maximum number of user instances by running the following command:
> ` sudo fs.inotify.max_user_instances = 1024`
Top comments (0)