Cannot allocate memory

Dhawal Doshy dhawal at NETMAGICSOLUTIONS.COM
Tue Apr 12 06:19:37 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Martins Smilga wrote:
> Hello,
>
>> What is your "Restart Every" setting?
>
> Restart Every = 14400
>
>> How much RAM do you have?
>
> 776856k
>
>> What did you set "Max Children" to be?
>
> Max Children = 5
>
>> What else is the machine running apart from MailScanner?
>
> Exim and Mailscanner-mrtg
>
> Thanks in advance.
>
> Best Regards,
> Martins

First check 'free -m' (linux specific) to check if your system is swapping..

Next you might want to try using valgrind (http://valgrind.org/, again
linux x86 specific) to find memory leaks (if any). When last used i
found a couple of memory leaks with the perl core libraries (libperl.so
v5.8.4, centos 3.3), quite minor though.. and the MailScanner 'Restart
Every' seems to do the trick of resolving these leaks.

valgrind --tool=memcheck --trace-children=yes --leak-check=yes
/path/to/check_mailscanner

- dhawal

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list