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

相关文章
|
5月前
|
监控 NoSQL Redis
Asynchronous AOF fsync is taking too long (disk is busy?). Writing the AOF buffer without waiting for fsync to complete, this may slow down Redis.
Asynchronous AOF fsync is taking too long (disk is busy?). Writing the AOF buffer without waiting for fsync to complete, this may slow down Redis.
|
存储 缓存 大数据
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
|
Oracle Java 关系型数据库
GC Overhead Limit Exceeded Error
GC Overhead Limit Exceeded Error
163 0
|
8月前
|
监控 Kubernetes 应用服务中间件
【最佳实践】使用CloudLens排查文件/目录数超限问题(STAT_LIMIT_ALARM, DIR_EXCEED_LIMIT_ALARM)
本文主要介绍如何使用CloudLens for SLS定位和解决iLogtail日常使用中的常见问题之一:包括STAT_LIMIT_ALARM, DIR_EXCEED_LIMIT_ALARM等诊断错误的文件/目录数超限问题,。
644 0
【最佳实践】使用CloudLens排查文件/目录数超限问题(STAT_LIMIT_ALARM, DIR_EXCEED_LIMIT_ALARM)
|
监控 Linux 网络安全
Linux报错audit: backlog limit exceeded
Linux报错audit: backlog limit exceeded
870 0
|
前端开发 Java 关系型数据库
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
记录:The field files exceeds its maximum permitted size of 1048576 bytes...【亲测有效】
1148 0