代码改变世界

inotify resources exhausted

2016-12-06 20:50  brookin  阅读(2084)  评论(0编辑  收藏  举报

inotify resources exhausted

tail -f /var/log/kubelet.log

tail: inotify resources exhausted
tail: inotify cannot be used, reverting to polling

debug

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

resolved

  1. Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:

    fs.inotify.max_user_watches = 524288

  2. Then run this command to apply the change:

    sudo sysctl -p --system

refer

https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit