[Dovecot] 1.1rc1: Maximum number of mail processes exceeded
I'm getting "Maximum number of mail processes exceeded" messages when 512 imap Processes are active.
Dovecot reports:
Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1712). Either grow the limit or change login_max_processes_count and max_mail_processes settings
But in my /var/service/dovecot/run script I use:
#!/bin/sh mkdir /var/core chmod 1777 /var/core echo /var/core/%p > /proc/sys/kernel/core_pattern ulimit -n unlimited ulimit -c unlimited /usr/local/sbin/dovecot -F
So how can I raise the filedescriptor limit above 1024 (linux-2.6.24.2, Debian)?
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de StGB SS328 Absatz 2.3: Mit Freiheitsstrafe bis zu f�nf Jahren oder mit Geldstrafe wird bestraft, wer eine nukleare Explosion verursacht
Before you start Dovecot type this in you shell:
ulimit -n 65000
I don't know how the use of the 'unlimited' word works: maybe this is only 1024?
Cheers,
Jan
-----Oorspronkelijk bericht----- Van: dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org [mailto:dovecot-bounces+jan.vandenberg=isp.solcon.nl@dovecot.org] Namens Ralf Hildebrandt Verzonden: maandag 25 februari 2008 10:25 Aan: dovecot@dovecot.org Onderwerp: [Dovecot] 1.1rc1: Maximum number of mail processes exceeded
I'm getting "Maximum number of mail processes exceeded" messages when 512 imap Processes are active.
Dovecot reports:
Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1712). Either grow the limit or change login_max_processes_count and max_mail_processes settings
But in my /var/service/dovecot/run script I use:
#!/bin/sh mkdir /var/core chmod 1777 /var/core echo /var/core/%p > /proc/sys/kernel/core_pattern ulimit -n unlimited ulimit -c unlimited /usr/local/sbin/dovecot -F
So how can I raise the filedescriptor limit above 1024 (linux-2.6.24.2, Debian)?
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de StGB SS328 Absatz 2.3: Mit Freiheitsstrafe bis zu fnf Jahren oder mit Geldstrafe wird bestraft, wer eine nukleare Explosion verursacht
- Jan van den Berg <jan.vandenberg@isp.solcon.nl>:
Before you start Dovecot type this in you shell:
ulimit -n 65000
I don't know how the use of the 'unlimited' word works: maybe this is only 1024?
According to http://www.cs.uwaterloo.ca/~brecht/servers/openfiles.html the contents of /etc/security/limits.conf are applied. And if there's nothing set there, 1024 is used.
But I'll retry with an explicit limit.
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de If you feel you have received this message in error, please recall that exp(i*pi) + 1 = 0;
Ralf Hildebrandt wrote:
So how can I raise the filedescriptor limit above 1024 (linux-2.6.24.2, Debian)?
In /etc/security/limits.conf, set
## domain type item limit
soft nofile 8192
hard nofile 8192
And in /etc/profile do
ulimit -HSn 8192
Log out from shell and log back in and you have new settings in effect.
Tomi
On Feb 25, 2008, at 11:25 AM, Ralf Hildebrandt wrote:
I'm getting "Maximum number of mail processes exceeded" messages when 512 imap Processes are active.
Note that only max_mail_processes affects this.
Warning: fd limit 1024 is lower than what Dovecot can use under full load (more than 1712). Either grow the limit or change login_max_processes_count and max_mail_processes settings
This is just a warning. If the fd limit is exceeded Dovecot just
starts logging "out of file descriptors" errors.
ulimit -n unlimited
Doesn't seem to work:
# ulimit -n unlimited # ulimit -n 1024
# ulimit -n 10000 # ulimit -n 10000
- Timo Sirainen <tss@iki.fi>:
On Feb 25, 2008, at 11:25 AM, Ralf Hildebrandt wrote:
I'm getting "Maximum number of mail processes exceeded" messages when 512 imap Processes are active.
Note that only max_mail_processes affects this.
I probably fucked this up. It works now. I tweaked the wrong settings :(
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de When you're having a really bad day and it seems like people are trying to piss you off, remember it takes 42 muscles to frown and only 4 to extend your middle finger.
participants (4)
-
Jan van den Berg
-
Ralf Hildebrandt
-
Timo Sirainen
-
Tomi Hakala