Ubuntu Increase Inotify Watcher (File Watch Limit)

Sep 30, 2018
Possible cause of Vue.js hot reload or LiveReload not working, or ENOSPC: System limit for number of file watchers reached

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=32768sudo sysctl -p

Make the changes permanent.

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

References:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.