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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Ben Parker
Datum:  
To: exim-users
Betreff: Re: [EXIM] Semi-FAQ: too many open files and Error 11 problems
(Linux 2.0.32, Red Hat 5.0, exim 2.11)

I am reviving this thread to bring you my latest tribulations... The too
many open files problem has gone, thanks to this advice from Lee and
others. However, I am still getting these "Resource temporarily
unavailable" errors on .forward deliveries that run a program when the
load is a bit above average. Unfortunately the message gets mangled
(header and no body) and causes a mess. I have plenty of swap memory but
not much real memory available. How can I tell if this is a memory or disk
problem? I am loathe to apply the filehandle patch to increase per-process
file handles as it seems (from my limited reading of the FM(s)) unlikely
to be the problem. Can I limit exim to only run a transport if a certain
amount of memory or processes are available? Or can I put something in the
.forward? I already tell exim not to run the queue if the load is greater
than 3.0. Help! mailagent is a perl program that scoffs quite a lot of
memory.

1999-03-26 09:54:51 10QQW1-0004uD-00 == |/usr/local/lib/mailagent/filter
>> /home/english/mailagent.log 2>&1 <english@???> T=address_pipe

defer (11): Resource temporarily unavailable: Error 11


Ben
Nairobi

On Thu, 18 Feb 1999, Lee Cashmore wrote:

> 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/ ***
>
>




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