IDEA报错--java.io.IOException: User limit of inotify watches reached

Inotify Watches Limit

Skip to end of metadata

Go to start of metadata

For an intelligent IDE, it is essential to be in the know about any external changes in files it is working with - e.g. changes made by VCS, or build tools, or code generators etc. For that reason, IntelliJ platform spins background process to monitor such changes. The method it uses is platform-specific, and on Linux, it is the Inotify facility.

Inotify requires a "watch handle" to be set for each directory in the project. 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):

1. 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

|

2. Then run this command to apply the change:

|

sudo sysctl -p --system

|

And don't forget to restart your IDE.

Note: the watches limit is per-account setting. If there are other programs running under the same account which also uses Inotify the limit should be raised high enough to suit needs of all of them.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • The Inner Game of Tennis W Timothy Gallwey Jonathan Cape ...
    网事_79a3阅读 12,299评论 3 20
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,452评论 0 10
  • ————记馨香玉兰教室开学第一周 经过的2个月假期的离别,9月3日我们又相聚在一起开始了一段新...
    YMYG一米阳光琼丽阅读 1,573评论 0 7
  • 可我依然伤心,伤心我的无能为力。 我们是要结婚的。 可我突然说不上来我要结婚的这个人哪里好。 这个时候,父母亲已经...
    莭子阅读 184评论 0 1
  • 题记:每个人的心中都有一块坍塌破败阴郁的小城,即使它没落荒芜,但你也不会掩盖它昔日的喧闹光景,在那座城里,若影映现...
    范书楠阅读 458评论 0 0