LIUNX下面
20.11.5.4 the per-process limit
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。
解决地址
For Linux:
Check current value of max_user_instances:
$ cat /proc/sys/fs/inotify/max_user_instances
increase that value:
$ echo 512 > /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 = 512
平台内部直接解决 “disabledReloadOnChange”:true
"operation": {
"sqlDebug": true, //数据库sql调试, operation
"verifyApi": true, //接口合法性验证, 格式如 36位guid|有效时间戳
"userBehavior": true, //用户接口请求行为记录
"userFilter": true, //用户认证,特定用户访问特定接口
"systemLog": true, //用户登录和操作日志记录
"disabledReloadOnChange":false//禁用mapper文件更新后重新刷新缓存,通常用于生产环境 true表示禁用
},
文档更新时间: 2021-08-10 08:00 作者:admin