the configured user limit (128) on the number of inotify instances has been reached

the configured user limit (128) on the number of inotify instances has been reached
在DotNet核心中读取json文件时出错“已达到inotify实例数量的配置用户限制(128)”
解决方法:

临时:
$ echo 65536 > /proc/sys/fs/inotify/max_user_instances

永久更改:

vi /etc/sysctl.conf #添加如下内容

fs.inotify.max_queued_events = 32768
fs.inotify.max_user_instances = 65536
fs.inotify.max_user_watches = 1048576

sysctl -p #使修改后文件生效

posted @ 2019-09-11 23:08  悳鎭  阅读(1743)  评论(1编辑  收藏  举报