[Dovecot] 1.0alpha1: too many open files
Help...
Dovecot 1.0alpha1 hung up today with nothing working and the following spewing to my syslog:
pipe() failed: Too many open files
My setup: Solaris 9, just using imap, mbox format. The various "max" settings in dovecot.conf use the defaults. Suggestions on what to change in fovecot.conf to keep this from happening?
Jeff Earickson Colby College
I found this:
echo "4096" > /proc/sys/kernel/file-max
First cat /proc/sys/kernel/file-max to see what it's set to.
Jeff A. Earickson wrote:
Help...
Dovecot 1.0alpha1 hung up today with nothing working and the following spewing to my syslog:
pipe() failed: Too many open files
My setup: Solaris 9, just using imap, mbox format. The various "max" settings in dovecot.conf use the defaults. Suggestions on what to change in fovecot.conf to keep this from happening?
Jeff Earickson Colby College
-- Marc Perkel - marc@perkel.com
Spam Filter: http://www.junkemailfilter.com My Blog: http://marc.perkel.com
On Mon, 05 Sep 2005 15:10:06 -0700 Marc Perkel wrote:
I found this:
echo "4096" > /proc/sys/kernel/file-max
First cat /proc/sys/kernel/file-max to see what it's set to.
Jeff A. Earickson wrote:
Help...
Dovecot 1.0alpha1 hung up today with nothing working and the following spewing to my syslog:
pipe() failed: Too many open files
My setup: Solaris 9, just using imap, mbox format. The various "max" settings in dovecot.conf use the defaults. Suggestions on what to change in fovecot.conf to keep this from happening?
Actually on Solaris 9 you want to put something like this in /etc/system:
set rlim_fd_cur = 32768 set rlim_fd_max = 65536
That sets the current fd's to 32k and max to 64k. Unfortunately, to take effect you'll need to reboot. After the reboot, ulimit -a should show that nofiles(descriptors) is 32768.
-Jeff
--
Jeff Ballard ballard@engr.wisc.edu 608-265-5090 Unix Systems Manager, Computer-Aided Engineering Center
On Mon, 2005-09-05 at 15:49 -0400, Jeff A. Earickson wrote:
Dovecot 1.0alpha1 hung up today with nothing working and the following spewing to my syslog:
pipe() failed: Too many open files
My setup: Solaris 9, just using imap, mbox format. The various "max" settings in dovecot.conf use the defaults. Suggestions on what to change in fovecot.conf to keep this from happening?
If this happens again, check how many imap, imap-login and dovecot-auth processes are running. Can you check with Solaris 9 what fds are open for a process (for dovecot master process)? Looks like with Solaris 10 I can at least see from /proc/pid/fd/ if the fds are pipes, sockets or files.
participants (4)
-
Jeff A. Earickson
-
Jeff Ballard
-
Marc Perkel
-
Timo Sirainen