I only want one child process but it seems to ignore the max children setting.

Hans de Groot hansg at dandy.nl
Wed Feb 22 10:38:11 GMT 2006


Hi,

No I am not sure :-)

It's what mailwatch reports. 

It looks like 3 Mailscanners are running permanently (every time I use ps auxw I see them)

root       618  0.0  0.3 44448 2432 ?        SN   Feb20   0:40 /usr/bin/php -q /usr/local/bin/sendmail_relay.php
root     31795  0.0  0.0 15628  452 ?        S    Feb21   0:00 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner
root     27749  0.3  5.0 44800 38776 ?       S    09:49   0:22 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner
root     28100  0.3  4.9 44524 38268 ?       S    09:56   0:21 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner
root     28102  0.3  5.0 44688 38688 ?       S    09:56   0:21 MailWatch SQL

This one apears some times and everry time it's a new PID. Might this be the child?
root      1435 55.5  5.1 46052 39912 ?       D    11:31   0:02 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner



On Wed, 22 Feb 2006 10:58:01 +0100
shuttlebox <shuttlebox at gmail.com> wrote:

> On 2/22/06, Hans de Groot <hansg at dandy.nl> wrote:	Hello all,
> 	
> 	I would like mailscanner to only use one child process.
> 	
> 	It should check the queue every 60 seconds and process any mail that is
> 	there. But only using one process since I am low on system resources
> 	
> 	I set the option max children=1
> 	
> 	But it seems to ignore this setting. I often see 2 or 3 children running.
> 	
> 	Am I doing something wrong?
> 	
> 	I am using Version 4.48.4-2.
> 
> 
> Are you sure that's children and not "helpers" like the wrapper scripts for Clam and so on?
> 
> I use 5 children and therefor normally have six processes related to MS running:
> 
>     root  7294  3787  1 07:08:21 ?        1:30 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  6621  3787  1 07:03:10 ?        1:33 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  6725  3787  1 07:03:53 ?        1:33 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  3787     1  0   Feb 10 ?        0:01 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  7656  3787  1 07:11:01 ?        1:36 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  7720  3787  1 07:11:12 ?        1:30 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
> 
> But whenever something is happening more processes start as needed:
> 
>     root  7294  3787  1 07:08:21 ?        1:30 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  6621  3787  1 07:03:10 ?        1:33 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  6725  3787  1 07:03:53 ?        1:33 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  3787     1  0   Feb 10 ?        0:01 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root 21922  6725  0 10:54:31 ?        0:00 /bin/sh /opt/MailScanner/lib/clamav-wrapper /usr/local -r --disable-summary --s
>     root 21921  7656  3 10:54:30 ?        0:01 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  7656  3787  1 07:11:01 ?        1:35 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
>     root  7720  3787  1 07:11:12 ?        1:30 /usr/bin/perl -I/opt/MailScanner/lib /opt/MailScanner/bin/MailScanner /opt/Mail
> 
> -- 
> /peter
> -- 
> This message has been scanned for viruses and
> dangerous content by<http://www.mailscanner.info/>MailScanner, and is
> believed to be clean.

--- 
Hans de Groot 
Email: hansg at dandy.nl   www: http://www.dandy.nl



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list