How do I find out what inotify watches have been registered?

前端 未结 7 2173
渐次进展
渐次进展 2021-01-30 05:14

I have my inotify watch limit set to 1024 (I think the default is 128?). Despite that, yeoman, Guard and Dropbox constantly fail, and tell me to up my inotify limit. Before do

7条回答
  •  不知归路
    2021-01-30 05:45

    inotify filesystem options

    sysctl fs.inotify

    opened files

    lsof | grep inotify | wc -l

    Increase the values like this

    • sysctl -n -w fs.inotify.max_user_watches=16384
    • sysctl -n -w fs.inotify.max_user_instances=512

提交回复
热议问题