tailf报错limit of inotify watches was reached

简介: tailf报错limit of inotify watches was reached

tailf报错
tailf: *.log:cannot add inotify watch (limit of inotify watches was reached).

居然不能随时输出日志,会自动退出tailf模式

刚看见时有点蒙,tailf跟inotify有毛线关系

我这台确实装了inotify+unison来做双机文件同步

百度,大概意思是查看文件达到限制,原因就是inotify监控的文件太多了

没关系,这个很好解决,inotify之前也出现过这个报错

查看系统同时监控文件的个数
cat /proc/sys/fs/inotify/max_user_watches

根据你的服务器配置来选择要增大到多少,一般加2个0没什么问题
echo 819200 > /proc/sys/fs/inotify/max_user_watches

OK,无需重启什么

相关文章
|
存储 缓存 大数据
Starrocks执行查询报错:Memory of process exceed limit. Used: XXX, Limit: XXX. Mem usage has exceed the limit of BE
Starrocks执行查询报错:Memory of process exceed limit. Used: XXX, Limit: XXX. Mem usage has exceed the limit of BE
|
4月前
|
前端开发
Fatal error_ ENOSPC_ System limit for number of file watchers reached, watch '...path...'
Fatal error_ ENOSPC_ System limit for number of file watchers reached, watch '...path...'
49 0
|
SQL 关系型数据库 MySQL
postgre分页查询报错:ERROR: LIMIT #,# syntax is not supported 建议:Use separate LIMIT and OFFSET clauses
postgre分页查询报错:ERROR: LIMIT #,# syntax is not supported 建议:Use separate LIMIT and OFFSET clauses
319 0
postgre分页查询报错:ERROR: LIMIT #,# syntax is not supported 建议:Use separate LIMIT and OFFSET clauses
|
监控 Linux 网络安全
Linux报错audit: backlog limit exceeded
Linux报错audit: backlog limit exceeded
826 0
|
PHP
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!
440 0
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!
|
前端开发 Java 关系型数据库
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
1102 0