其他分享
首页 > 其他分享> > android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too

android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too

作者:互联网

/etc/sysctl.d文件夹下新建60-jetbrains.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

参考:https://blog.csdn.net/hzjanger/article/details/90213534

标签:slow,sysctl,inotify,sudo,60,报错,low,conf,jetbrains
来源: https://www.cnblogs.com/lvcha/p/15877070.html