Ubuntu Increase Inotify Watcher (File Watch Limit)

September 30, 2018
Possible cause of Vue.js hot reload or LiveReload not working

Check the current file watch limit, default is usually 8192.

cat /proc/sys/fs/inotify/max_user_watches

Set new max_user_watches.

sudo sysctl fs.inotify.max_user_watches=16384
sudo sysctl -p

Make the changes permanent.

echo fs.inotify.max_user_watches=16384 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.