has been reached, or the per-process limit on the number of open file descriptors has been reached.
部署一个asp.net core程序,用着用着占用线程数越来越多,看报错日志发现这么一行:the configured user limit (128) on the number of inotify instances has been reached。
解决:
https://stackoverflow.com/questions/32281277/too-many-open-files-failed-to-initialize-inotify-the-user-limit-on-the-total
For Linux:
Check current value of max_user_instances:
$ cat /proc/sys/fs/inotify/max_user_instances
increase that value:
$ echo 256 > /proc/sys/fs/inotify/max_user_instances
In order to make that change permanent add a line to /etc/sysctl.conf:
fs.inotify.max_user_instances = 256
平台中直接配置禁用(如果配置文件修改了,需要手动重启)
operation:disabledReloadOnChange
文档更新时间: 2021-08-23 08:00 作者:admin