What do you think? Discuss, post comments, or ask questions at the end of this article [More about me]

Skip to end of metadata
Go to start of metadata

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.

/etc/sysctl.d/99-inotify-max-watches.conf
fs.inotify.max_user_watches=16382

Reload this setting with sysctl -p on debian/centos or sysctl --system on Arch/Manjaro.

References

  1. https://unix.stackexchange.com/questions/13751/kernel-inotify-watch-limit-reached