[Dovecot] fd limit 1024 is lower in dovecot-1.1.1
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings [ OK ] ----8< ----
but i changed either login_max_processes_count and max_mail_processes to 2048, it raised the same msg. How can i solove this issue?
Thanks very much.
My dovecot -n output:
----8<---- # dovecot -n # 1.1.1: /etc/dovecot.conf Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings log_path: /var/log/dovecot.log protocols: pop3 pop3s imap imaps listen: * ssl_cert_file: /etc/pki/dovecot/certs/dovecotCert.pem ssl_key_file: /etc/pki/dovecot/private/dovecotKey.pem login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login max_mail_processes: 1024 mail_uid: 2000 mail_gid: 2000 mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/ mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login user: vmail passdb: driver: sql args: /etc/dovecot-mysql.conf userdb: driver: sql args: /etc/dovecot-mysql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 432 user: vmail group: vmail
-- Best Regards.
Zhang Huangbin
- Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://rhms.googlecode.com/
On Sun, 29 Jun 2008 03:53:54 pm Zhang Huangbin wrote:
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings [ OK ] ----8< ----
but i changed either login_max_processes_count and max_mail_processes to 2048, it raised the same msg.
change may not mean increase
How can i solove this issue?
/etc/security/limits.conf to increase the "nofiles" or possibly decrese the process counts.
--
Daniel Black
Proudly a Gentoo Linux User. Gnu-PG/PGP signed and encrypted email preferred http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x76677097 GPG Signature D934 5397 A84A 6366 9687 9EB2 861A 4ABA 7667 7097
Zhang Huangbin wrote:
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings [ OK ] ----8< ----
but i changed either login_max_processes_count and max_mail_processes to 2048, it raised the same msg. How can i solove this issue?
I'm just guessing - but reading that warning it appears to me that Dovecot is saying that as it is configured, it can consume more O/S resources (I assume fd is "file descriptors") than the O/S is currently configured for. So you need to DECREASE your dovecot max processes to decrease the (potential) system demands - or increase your O/S settings.
Daniel
Daniel L. Miller wrote:
Zhang Huangbin wrote:
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings [ OK ] ----8< ----
but i changed either login_max_processes_count and max_mail_processes to 2048, it raised the same msg. How can i solove this issue?
I'm just guessing - but reading that warning it appears to me that Dovecot is saying that as it is configured, it can consume more O/S resources (I assume fd is "file descriptors") than the O/S is currently configured for. So you need to DECREASE your dovecot max processes to decrease the (potential) system demands - or increase your O/S settings.
Daniel
I think so.
I just decrease the processes, it works now.
Thanks Daniel and all replies. :)
-- Best Regards.
Zhang Huangbin
- Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://rhms.googlecode.com/
Zhang Huangbin wrote:
Daniel L. Miller wrote:
Zhang Huangbin wrote:
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings
I'm just guessing - but reading that warning it appears to me that Dovecot is saying that as it is configured, it can consume more O/S resources (I assume fd is "file descriptors") than the O/S is currently configured for. So you need to DECREASE your dovecot max processes to decrease the (potential) system demands - or increase your O/S settings.
Daniel
I think so.
I just decrease the processes, it works now.
Hi,
Just as an FYI, for some versions of linux (i.e. RHE) you need to set the process limit - ulimit unlimited is not enough. 1024 is the default number of open file descriptors.
One of the ways to solve this is by running 'ulimit -n X' in your init script before starting the program. Within RHE, another way is to configure /etc/security/limits.conf by putting something like this into the file:
- hard locks 8192
- hard nofile 8192
- soft locks 4096
- soft nofile 4096
This allows for processes to run with 4096 file descriptors by default and the user process can increase it to 8192 via ulimit. /etc/security/limits.conf can also be configured on a per user basis which is also nice.
Jack Stewart wrote:
Zhang Huangbin wrote:
Daniel L. Miller wrote:
Zhang Huangbin wrote:
Hi, all.
I just upgrade from 1.0.15 to 1.1.1 in a test box(RHEL 5.2, x86_64).
after upgrade, i got this warning msg:
----8< ---- # /etc/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1280). Either grow the limit or change login_max_processes_count and max_mail_processes settings
I'm just guessing - but reading that warning it appears to me that Dovecot is saying that as it is configured, it can consume more O/S resources (I assume fd is "file descriptors") than the O/S is currently configured for. So you need to DECREASE your dovecot max processes to decrease the (potential) system demands - or increase your O/S settings.
Daniel
I think so.
I just decrease the processes, it works now.
Hi,
Just as an FYI, for some versions of linux (i.e. RHE) you need to set the process limit - ulimit unlimited is not enough. 1024 is the default number of open file descriptors.
One of the ways to solve this is by running 'ulimit -n X' in your init script before starting the program. Within RHE, another way is to configure /etc/security/limits.conf by putting something like this into the file:
- hard locks 8192
- hard nofile 8192
- soft locks 4096
- soft nofile 4096
This allows for processes to run with 4096 file descriptors by default and the user process can increase it to 8192 via ulimit. /etc/security/limits.conf can also be configured on a per user basis which is also nice.
Thanks Jack. I will test it later. ^_^
I just comment the 'max_processes' variable in dovecot.conf now.
-- Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x: http://iRedMail.googlecode.com/
participants (4)
-
Daniel Black
-
Daniel L. Miller
-
Jack Stewart
-
Zhang Huangbin