Skip to content

Instantly share code, notes, and snippets.

@msalahz
Last active September 17, 2016 13:52
Show Gist options
  • Save msalahz/a9a1f7c91119f3cb49cccacfa0951d40 to your computer and use it in GitHub Desktop.
Save msalahz/a9a1f7c91119f3cb49cccacfa0951d40 to your computer and use it in GitHub Desktop.
Fix Inotify Watches Limit error

Inotify Watches Limit

Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects, and reaching the limit will force IntelliJ platform to fall back to recursive scans of directory trees.

To prevent this situation it is recommended to increase the watches limit (to, say, 512K):

  • Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:

fs.inotify.max_user_watches = 524288

  • Then run this command to apply the change:

sudo sysctl -p --system

And don't forget to restart your IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment