python之解决pycharm:External file changes sync may be slow: The current inotify

python之解决pycharm:External file changes sync may be slow: The current inotify,第1张

1.检查当前设置
$ cat /proc/sys/fs/inotify/max_user_watches

8192

2.当前值太小,添加新的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
3.重新启动系统
$ sudo sysctl -p --system

 

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/789194.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-05
下一篇 2022-05-05

发表评论

登录后才能评论

评论列表(0条)

保存