Ralf Hildebrandt
2008-Feb-25 09:25 UTC
[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 at charite.de) snickebo at 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
Jan van den Berg
2008-Feb-25 09:30 UTC
[Dovecot] 1.1rc1: Maximum number of mail processes exceeded
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 at dovecot.org [mailto:dovecot-bounces+jan.vandenberg=isp.solcon.nl at dovecot.org] Namens Ralf Hildebrandt Verzonden: maandag 25 februari 2008 10:25 Aan: dovecot at 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 at charite.de) snickebo at 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
Tomi Hakala
2008-Feb-25 10:28 UTC
[Dovecot] 1.1rc1: Maximum number of mail processes exceeded
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
Timo Sirainen
2008-Feb-25 10:39 UTC
[Dovecot] 1.1rc1: Maximum number of mail processes exceeded
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 settingsThis is just a warning. If the fd limit is exceeded Dovecot just starts logging "out of file descriptors" errors.> ulimit -n unlimitedDoesn't seem to work: # ulimit -n unlimited # ulimit -n 1024 # ulimit -n 10000 # ulimit -n 10000 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080225/fa3a98c9/attachment-0002.bin>
Ralf Hildebrandt
2008-Feb-25 10:41 UTC
[Dovecot] 1.1rc1: Maximum number of mail processes exceeded
* Timo Sirainen <tss at 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 at charite.de) snickebo at 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.