inotify | kernel // upper limit on inotify watches

show current limit:
cat /proc/sys/fs/inotify/max_user_watches

change temporarily:

Run sudo sysctl fs.inotify.max_user_watches= with your preferred value at the end.

change permanently:

Replace the value within the /proc/sys/fs/inotify/max_user_watches file with your own, i.e echo 524288 | sudo tee -a /proc/sys/fs/inotify/max_user_watches.


sudo echo "fs.inotify.max_user_watches=$" >> /etc/sysctl.conf

To make the changes take effect without rebooting, run:

sudo sysctl -p /etc/sysctl.conf

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.