美文网首页
External file changes sync slow:

External file changes sync slow:

作者: 墨鱼好黑 | 来源:发表于2022-10-14 11:39 被阅读0次

原文连接:

点这里

##################
Android Studio 3 上运行 gradle 任务时收到此消息

External file changes sync may be slow: The current inotify(7) watch limit is too low

google,JetBrain 的一些官方说明。阅读 这里获取更多信息.

现在,检查一下当前大小:

$ cat /proc/sys/fs/inotify/max_user_watches
8192

当前值是否太小?添加新的conf文件

$ sudo touch /etc/sysctl.d/60-jetbrains.conf

打开新添加的文件,并添加最后一横

# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
# 
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use

# 在这里添加
fs.inotify.max_user_watches = 524288

重启冰刷新一下系统

$ sudo sysctl -p --system

IDE应该已经不会报错了。。

相关文章

网友评论

      本文标题:External file changes sync slow:

      本文链接:https://www.haomeiwen.com/subject/oizqzrtx.html