4

The inotify watches limit is too low.

 2 years ago
source link: http://i.lckiss.com/?p=7675
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The inotify watches limit is too low.

2021-12-28

环境:Elementary 0S 5.1 ( Ubuntu 18.04 LTS (bionic) ) 虚拟机

虚拟机的性能不够,而且一般情况下安装时候的所有配置都是低配,所以在每次启动 Android studio 时候都会提示:“inotify watches limit is too low”

解决办法是有的,只是治标不治本,最好还是装物理机上。

新增 sysctl 配置

sudo touch /etc/sysctl.d idea.conf

编辑(我更喜欢 nano 一点,vi 也行,有啥用啥):

nano /etc/sysctl.d/idea.conf

增加内容:

fs.inotify.max_user_watches=524288
systemctl restart systemd-sysctl.service

参考官方推荐网页:https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK