Re: [EXIM] Semi-FAQ: too many open files and Error 11 proble…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Lee Cashmore
Data:  
Para: Ben Parker
CC: exim-users
Assunto: Re: [EXIM] Semi-FAQ: too many open files and Error 11 problems
I had the same problem on my Redhat 5.2 System.

The problem appears to be the number of open files the system can handle.
This is changable by using the proc filesystem. In my /etc/rc.d/rc.local
file I have appended the following.

#Now System is up, Modify kernel parameters for max open files/inodes
#etc..

if [ -f /proc/sys/kernel/file-max ]; then
    echo 16384 >> /proc/sys/kernel/file-max
fi
if [ -f /proc/sys/kernel/inode-max ]; then
    echo 24576 >> /proc/sys/kernel/inode-max
fi
if [ -f /proc/sys/kernel/file-nr ]; then
    echo 2160 >> /proc/sys/kernel/file-nr
fi





By echoing the value you want for file-max to the file    file-max  etc...
you actually change the kernel parameters.


Hope this helps

Lee

--------------------------------------------------------------------------
 Lee Cashmore                                 leec@???
 Computer Network Administrator                  Tel. +44 (0)1952 642264
 Telford College Of Arts & Technology              http://www.tcat.ac.uk
--------------------------------------------------------------------------


On Thu, 18 Feb 1999, Ben Parker wrote:

> Date: Thu, 18 Feb 1999 12:53:32 +0300 (EAT)
> From: Ben Parker <ben@???>
> To: exim-users@???
> Subject: [EXIM] Semi-FAQ: too many open files and Error 11 problems
>
>
> Would be grateful for settings anyone else is suceeding with to tackle
> these two problems which happen when the server is very heavily loaded. I
> get the "too many open files" error especially when a lot of messages land
> for majordomo at the same time. I have set everything I could find in the
> spec.txt and FAQs not to overstress my system (RedHat 5.0, exim 2.11).
> exim is compiled WITH_DB (Berkley), should I try ndbm? Do I have to
> recompile Linux? Yikes!
>
> ############# Things that I though were going to help: #########
>
> log_level = 6
> check_spool_inodes = 100
> lookup_open_max = 5
> trusted_users = mail:majordom:uucp
> finduser_retries = 20
> remote_max_parallel = 2
> freeze_tell_mailmaster = true
> auto_thaw = 10m
> log_file_path = /var/spool/exim/log/%slog
> queue_run_max = 2
> end
>
>
>
>
>
> --
> *** Exim information can be found at http://www.exim.org/ ***
>



--
*** Exim information can be found at http://www.exim.org/ ***