maillog报错Warning: Inotify instance limit

简介:

mail日志提示警告信息:

Jan 26 10:48:40 hlt2 dovecot: imap(test@test.com): Warning: Inotify instance limit for user 9006 (UID kkmail) exceeded, disabling. Increase /proc/sys/fs/inotify/max_user_instances


解决办法:

1、确认默认设置信息。

cat /proc/sys/fs/inotify/max_user_instances 
128


2、vi /etc/sysctl.conf 更改大点,没有就添加这两行。

fs.inotify.max_user_watches = 4096
fs.inotify.max_user_instances = 4096


3、执行以下命令让内核文件生效。

sysctl -p

最好dovecot也重启下,然后再查看文件看看。




本文转自 sailikung 51CTO博客,原文链接:http://blog.51cto.com/net881004/2065481,如需转载请自行联系原作者

相关文章
|
15天前
|
SQL
CHECK
【11月更文挑战第15天】
26 5
|
关系型数据库 MySQL 数据库
ERROR! MariaDB is running but PID file could not be found
在CentOS7.6上安装了MariaDB10.3,采用的yum方式安装的,用命令查看数据库的状态会报错误
163 0
|
Java 索引
logstash问题记录:Attempted to resurrect connection to dead ES instance, but got an error
logstash问题记录:Attempted to resurrect connection to dead ES instance, but got an error
869 0
logstash问题记录:Attempted to resurrect connection to dead ES instance, but got an error
|
网络安全 开发工具
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
1035 0
【解决方案】A session ended very soon after starting. Check that the command in profile “XXX” is correct.
|
Java Android开发
is not allowed for source level below 1.7 的解决办法
is not allowed for source level below 1.7 的解决办法
192 0
|
监控
tailf报错limit of inotify watches was reached
tailf报错limit of inotify watches was reached
3540 0
|
存储 NoSQL Linux
redis异常 Commands that may modify the data set are disabled, because this instance is
MISCONF Redis配置为保存RDB快照,但目前无法在磁盘上持久化。可能修改数据集的命令被禁用,因为该实例被配置为在RDB快照失败时报告错误(stop-write -on-bgsave-error选项)。请检查Redis的日志RDB错误的详细信息.
redis异常 Commands that may modify the data set are disabled, because this instance is
|
关系型数据库 网络虚拟化