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,无需重启什么

相关文章
|
4月前
|
缓存 监控 时序数据库
influxdb报错:cache-max-memory-size exceeded
influxdb报错:cache-max-memory-size exceeded
157 0
|
存储 缓存 大数据
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
|
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
369 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
862 0
|
PHP
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!
450 0
【PHP报错集锦】 Maximum function nesting level of ‘256‘ reached, aborting!