Skip to content

Instantly share code, notes, and snippets.

@olibre
Forked from bittner/60-jetbrains.conf
Last active September 9, 2019 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olibre/a0219529a6cc347494f40780e7e539eb to your computer and use it in GitHub Desktop.
Save olibre/a0219529a6cc347494f40780e7e539eb to your computer and use it in GitHub Desktop.
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# 1. Check current value in use: `cat /proc/sys/fs/inotify/max_user_watches`
# 2. Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu, Fedora...)
# 3. Apply new configuration: `sudo sysctl -p --system` or `sudo service procps start` or reboot
# 4. Check new value in use: `cat /proc/sys/fs/inotify/max_user_watches`
#
# References:
# * https://gist.github.com/olibre/a0219529a6cc347494f40780e7e539eb
# * https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
#
# See also:
# `man inotify`
# `man sysctl.conf`
fs.inotify.max_user_watches = 524288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment