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,如需转载请自行联系原作者

相关文章
|
5月前
|
前端开发
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...'
|
6月前
|
缓存 Ubuntu Linux
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
|
6月前
Install fail! Error: EBUSY: resource busy or locked, symlink
Install fail! Error: EBUSY: resource busy or locked, symlink
58 0
|
9月前
|
数据安全/隐私保护
Do Sync Disk 0 Part 0 Failed, code=S3_F42, msg=Sync Failed after retry 5 times
Do Sync Disk 0 Part 0 Failed, code=S3_F42, msg=Sync Failed after retry 5 times
144 1
未解决:dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/-1.diff.rm5mTN
未解决:dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/-1.diff.rm5mTN
91 0
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
609 0
|
监控
tailf报错limit of inotify watches was reached
tailf报错limit of inotify watches was reached
3382 0