Script to See Which Inotify Limit Is Low
If you ran into inotify issues and want to find out which inotify limit you are running low on you can start with just checking your current limits, with the simple command in bash:
sysctl fs.inotify.max_user_watches; \
sysctl fs.inotify.max_user_instances; \
sysctl fs.inotify.max_queued_events
This should print output that contains something like:
fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 256
fs.inotify.max_queued_events = 16384
If you want to get the actual limits used, that is not as straightforward and requires some scripting. You can see some options here, (Also remember Remember to Review Scripts from Internet Prior to Running Them)
Backlinks