cloud9で 'fs.inotify.max_user_watches' limit or change settings in 'Preferences > User Settings > File Watching' のエラー

cloud9 で以下のエラーが出た場合

Your environment is running out of inodes, please increase 'fs.inotify.max_user_watches' limit or change settings in 'Preferences > User Settings > File Watching'. Check documentation

 

以下のコマンドを実行で解決

sudo bash -c 'echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf' && sudo sysctl -p

 

https://docs.aws.amazon.com/cloud9/latest/user-guide/troubleshooting.html#toolkit-iodes-

Error when running AWS Toolkit: "Your environment is running out of inodes, please increase 'fs.inotify.max_user_watches' limit."

 

 

Preferences > User Settings > File Watching を増やしても何も変わらないので注意が必要

 

 

AAAAAAAAAAAAAAA:~/environment $ sudo bash -c 'echo "fs.inotify.max_user_watches=524288" >> /etc/sysctl.conf' && sudo sysctl -p
[sudo] password for ec2-user: 
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.inotify.max_user_watches = 524288
AAAAAAAAAAAAAAA:~/environment $