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.

OR DO

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s