[Dovecot] Too many open files
Hi, other error in "open files":
dovecot: Oct 20 10:52:36 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:51 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:53 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:54 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 (exec() failed)
# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 81919 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 81919 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
We work in "High-performance mode" with login_max_processes_count = 256
Our script "post-login-imap-dovecot" is: #!/bin/sh touch ~/.last_login exec /usr/libexec/dovecot/imap
Now, we have this:
# lsof -p cat /var/run/dovecot/master.pid
| wc -l
1018
¿Any idea? Thanks a lot.
Bye.
On Tue, 2008-10-21 at 10:47 +0200, Antonio Casado Rodríguez wrote:
Hi, other error in "open files":
dovecot: Oct 20 10:52:36 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 (exec() failed)
This comes from the dovecot master process.
open files (-n) 1024
And it's limited by this.
Now, we have this: # lsof -p
cat /var/run/dovecot/master.pid
| wc -l 1018
So increase ulimit -n before starting Dovecot.
What Dovecot version are you using? If v1.1+, doesn't it give a warning at startup that your limit is too low?
On 22/10/08 07:43:49, Timo Sirainen wrote:
What Dovecot version are you using? If v1.1+, doesn't it give a warning at startup that your limit is too low?
Just so you know dovecot does what you coded it to, yes it gives
warning, dovecot -n in normal shell shows it, adn I think once I was
lazy and started it without the rc file and was warned as well.
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0
Do you know the problem?
Thank you.
Antonio Casado Rodríguez escribió:
Hi, other error in "open files":
dovecot: Oct 20 10:52:36 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:51 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:53 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:54 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 (exec() failed)
# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 81919 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 81919 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
We work in "High-performance mode" with login_max_processes_count = 256
Our script "post-login-imap-dovecot" is: #!/bin/sh touch ~/.last_login exec /usr/libexec/dovecot/imap
Now, we have this: # lsof -p
cat /var/run/dovecot/master.pid
| wc -l 1018¿Any idea? Thanks a lot.
Bye.
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0
Do you know the problem?
Thank you.
Hi, other error in "open files":
dovecot: Oct 20 10:52:36 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:51 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:53 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 (exec() failed) dovecot: Oct 20 10:55:54 Fatal: execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open files dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 (exec() failed)
# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 81919 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 81919 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
We work in "High-performance mode" with login_max_processes_count = 256
Our script "post-login-imap-dovecot" is: #!/bin/sh touch ~/.last_login exec /usr/libexec/dovecot/imap
Now, we have this: # lsof -p
cat /var/run/dovecot/master.pid
| wc -l 1018¿Any idea? Thanks a lot.
Bye.
On 22/10/08 08:09:23, Antonio Casado Rodríguez wrote:
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise
Linux 5.0Do you know the problem?
Timo has already pointed this out to you..
In your, hrmm not used RH servers in years being a Skackware'r, but I
think its in file /etc/init.d/dovecot ?
At the top of this file, right after the shell declaration, put in
ulimit -n 8192
Quey escribió:
On 22/10/08 08:09:23, Antonio Casado Rodríguez wrote:
I forgot something, i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0
Do you know the problem?
Timo has already pointed this out to you. Perfect. In your, hrmm not used RH servers in years being a Skackware'r, but I think its in file /etc/init.d/dovecot ? At the top of this file, right after the shell declaration, put in
ulimit -n 8192 Ok, I put it in /etc/init.d/dovecot and now i have:
# more /proc/cat /var/run/dovecot/master.pid
/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 10485760 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 81919 81919
processes
Max open files 8192 8192 files
Max locked memory 32768 32768 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 81919 81919 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Thanks you.
participants (4)
-
Antonio Casado
-
Antonio Casado Rodríguez
-
Quey
-
Timo Sirainen