Problem
Many applications use inotify to monitor folders for file changes etc. One of my favourite git clients, Git Kraken, recently complained about the inotify limit needing to be increased to continue monitoring a (fairly large) repository for file changes.
Solution
I currently use Manjaro Linux i3 community edition. The following will work with Manjaro, Arch, and any other distro based on Arch Linux.
First, let's create a file in /etc/sysctl.d
to increase the inotify limit permanently. You can call the file what you want, but it should start with a number, which relates to the order that files will be executed in.
See below.
fs.inotify.max_user_watches=16382
Reload this setting with sysctl -p
on debian/centos or sysctl --system
on Arch/Manjaro.
References
Related articles