[Dovecot] "pipe() failed: Too many open files" - ??
Hi list,
after about a day of operation, dovecot 1.0alpha5 (NetBSD/i386 2.1) died on me with
Dec 14 10:53:52 bounce dovecot: pipe() failed: Too many open files Dec 14 10:54:23 bounce last message repeated 279661 times Dec 14 10:56:23 bounce last message repeated 1071807 times Dec 14 10:56:59 bounce last message repeated 325386 times
-- any ideas on what to tune?
hauke
-- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut für Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281
Hauke Fath wrote:
Hi list,
after about a day of operation, dovecot 1.0alpha5 (NetBSD/i386 2.1) died on me with
Dec 14 10:53:52 bounce dovecot: pipe() failed: Too many open files Dec 14 10:54:23 bounce last message repeated 279661 times Dec 14 10:56:23 bounce last message repeated 1071807 times Dec 14 10:56:59 bounce last message repeated 325386 times
-- any ideas on what to tune?
hauke
it's pretty likely that some service on your machine went nuts and didn't close his files .. what is running on that box ?
doesn't have to be doevcots fault at all
Florian
Am 14.12.2005 um 11:05 Uhr +0100 schrieb Hauke Fath:
after about a day of operation, dovecot 1.0alpha5 (NetBSD/i386 2.1) died on me with
Dec 14 10:53:52 bounce dovecot: pipe() failed: Too many open files Dec 14 10:54:23 bounce last message repeated 279661 times Dec 14 10:56:23 bounce last message repeated 1071807 times Dec 14 10:56:59 bounce last message repeated 325386 times
-- any ideas on what to tune?
I just noted that I ran into this before: http://www.dovecot.org/pipermail/dovecot/2004-July/003964.html
For now, I bumped the 'open files' shell limit in the dovecot start script to 1024 (default was 64 which sounds a bit on the low side). Any ideas on how many concurrent open files a Dovecot instance needs?
hauke
-- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut für Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281
On Wed, 2005-12-14 at 11:35 +0100, Hauke Fath wrote:
Am 14.12.2005 um 11:05 Uhr +0100 schrieb Hauke Fath:
after about a day of operation, dovecot 1.0alpha5 (NetBSD/i386 2.1) died on me with
Dec 14 10:53:52 bounce dovecot: pipe() failed: Too many open files Dec 14 10:54:23 bounce last message repeated 279661 times Dec 14 10:56:23 bounce last message repeated 1071807 times Dec 14 10:56:59 bounce last message repeated 325386 times
-- any ideas on what to tune?
I just noted that I ran into this before: http://www.dovecot.org/pipermail/dovecot/2004-July/003964.html
For now, I bumped the 'open files' shell limit in the dovecot start script to 1024 (default was 64 which sounds a bit on the low side).
<trolling start> "a bit on the low side" ... you must be joking </trolling end>
64 files as default for any process is absolutely weird.
just do a
% lsof -p $PID
on any process and think twice about setting the max open files to such a strange value.
regards
Udo Rader
-- bestsolution.at EDV Systemhaus GmbH http://www.bestsolution.at
Am 14.12.2005 um 12:39 Uhr +0100 schrieb Udo Rader:
For now, I bumped the 'open files' shell limit in the dovecot start script to 1024 (default was 64 which sounds a bit on the low side).
64 files as default for any process is absolutely weird.
[hf@bounce] /var/log # lsof -p head -1 /var/run/dovecot/master.pid
| wc -l
49
on any process and think twice about setting the max open files to such a strange value.
What, 1024? The default of 64 which has been quite sufficient for Dovecot 0.99.x until now, and still is for other server processes?
hauke
-- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut für Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281
I ran into this problem with alpha4 on Solaris 9. I doubled the following dovecot settings:
login_max_processes_count = 256 (was 128) login_max_logging_users = 512 (was 256)
and the problem went away. I carried these numbers forward into alpha5, and it has been working fine.
Jeff Earickson Colby College
On Wed, 14 Dec 2005, Hauke Fath wrote:
Date: Wed, 14 Dec 2005 13:16:14 +0100 From: Hauke Fath <hf@spg.tu-darmstadt.de> To: Udo Rader <udo.rader@bestsolution.at> Cc: dovecot@dovecot.org Subject: Re: [Dovecot] "pipe() failed: Too many open files" - ??
Am 14.12.2005 um 12:39 Uhr +0100 schrieb Udo Rader:
For now, I bumped the 'open files' shell limit in the dovecot start script to 1024 (default was 64 which sounds a bit on the low side).
64 files as default for any process is absolutely weird.
[hf@bounce] /var/log # lsof -p
head -1 /var/run/dovecot/master.pid
| wc -l 49on any process and think twice about setting the max open files to such a strange value.
What, 1024? The default of 64 which has been quite sufficient for Dovecot 0.99.x until now, and still is for other server processes?
hauke
-- /~\ The ASCII Ribbon Campaign Hauke Fath \ / No HTML/RTF in email Institut für Nachrichtentechnik X No Word docs in email TU Darmstadt / \ Respect for open standards Ruf +49-6151-16-3281
On Wed, 2005-12-14 at 13:16 +0100, Hauke Fath wrote:
on any process and think twice about setting the max open files to such a strange value.
What, 1024? The default of 64 which has been quite sufficient for Dovecot 0.99.x until now, and still is for other server processes?
One difference is that in Dovecot 1.0-alpha all the logging goes through master process, which requires one pipe per each user that's logged in. For SSL users that's two pipes, one for imap and another for imap-login.
This will actually change in Dovecot 2.0 where there are separate log processes.
participants (5)
-
Florian Schnabel
-
Hauke Fath
-
Jeff A. Earickson
-
Timo Sirainen
-
Udo Rader