Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Inotify requires a "watch handle" to be set for each directory in the project. Unfortunately, the default limit of watch handles (8192) may be too low, and reaching it will force IntelliJ platform to fall back to recursive scans of project directory treetrees.

To prevent this situation it is recommended to increase the watches limit. You can do it by adding following line to the end of the /etc/sysctl.conf file:

Code Block
fs.inotify.max_user_watches = 131072

Then run this command to apply the change:

Code Block
sudo sysctl -p

And don't forget to restart IDEA.

Note: the watches limit is per-user. If there are another programs which also uses Inotify (e.g. Beagle or MonoDevelop) the limit should be raised high enough to suite needs of all of them.