Hi.
I have problem with clamav-milter child processes.

My configuration:

Sendmail 8.12.10 + milter (RAV, Clam)
PLD Linux (Kernel 2.4.22 + openwall)
Clamav-devel-20031020, clamav-milter 0.60m.

sendmail.mc:
===========
define(`_FFR_MILTER', `true')
INPUT_MAIL_FILTER
(`RAVMilter',`S=local:/var/opt/rav/run/RAVMilter.sock,F=R,T=S:20s;R:10m;E:10
m')
INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav-milter.sock,F=,T=S:4m;R:
4m')
define(`confINPUT_MAIL_FILTERS',`RAVMilter,clamav')

/etc/sysconfig/clamav-milter:
============================
CLAMAV_FLAGS="--max-children=10 -q --noxheader
local:/var/run/clamav-milter.sock"

The problem are child proceses (clamav-milter). Some of them doesn't
killed (RAV works OK, but microsoft has bought them :( ) after end of
scanning and stay in process list.

'Start' proceses (parents??):
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       387  0.0  0.0  15712  1804 pts/6    S    14:58   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock
root       388  0.0  0.0  15712  1804 pts/6    S    14:58   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock
root       389  0.0  0.0  15712  1804 pts/6    S    14:58   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock

That processes could be killed after end of scannig (I can't kill them too;
# kill 2847 doesn't work)
root      2847  0.0  0.0  15712  1804 pts/6    S    15:23   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock
root     23044  0.0  0.0  15712  1804 pts/6    S    15:27   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock
root     30087  0.0  0.0  15712  1804 pts/6    S    16:58   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock

'Active' processes (OK):
ravms    13672  0.0  0.0  5680    744 ?        S    17:48   0:00
/opt/rav/bin/RAVMilter --daemon --addheader=off
root     13673  0.0  0.0  15712  1804 pts/6    S    17:48   0:00
clamav-milter --max-children=20 -q --noxheader
local:/var/run/clamav-milter.sock


All works fine until count clamav-milter processes is under 20, but when
exceeded 20:

Oct 20 17:14:27 almos clamav-milter[7406]: clamfi_connect: connection from
41.postnote.com [69.6.39.11]
Oct 20 17:14:27 almos clamav-milter[7406]: hit max-children limit (20 >=
20): waiting for some to exit
Oct 20 17:14:28 almos clamav-milter[7411]: clamfi_connect: connection from
[81.210.125.182] [81.210.125.182]
Oct 20 17:14:29 almos clamav-milter[5092]: clean message from
<[EMAIL PROTECTED]>
Oct 20 17:14:29 almos clamav-milter[5092]: hit max-children limit (20 >=
20): waiting for some to exit
Oct 20 17:14:30 almos clamav-milter[7406]: clean message from
<[EMAIL PROTECTED]>
Oct 20 17:14:30 almos clamav-milter[7411]: hit max-children limit (20 >=
20): waiting for some to exit
Oct 20 17:14:32 almos clamav-milter[7441]: clamfi_connect: connection from
[195.205.44.251] [195.205.44.251]
Oct 20 17:14:32 almos clamav-milter[7441]: hit max-children limit (20 >=
20): waiting for some to exit
Oct 20 17:14:33 almos clamav-milter[7454]: clamfi_connect: connection from
power.canea.com.pl [213.241.74.2]
Oct 20 17:14:33 almos clamav-milter[7454]: hit max-children limit (20 >=
20): waiting for some to exit


Any ideas where the problem is? Why some clamav-milter processes aren't
killed and take system resources?
I must restart all clamav-milter from time to time ;(

-- 
Maciej Kedzierski






-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to