Clamav replacement for FreeBSD+postfix?

Mike Tancsa mike at sentex.net
Mon Feb 19 22:31:52 UTC 2007


At 04:45 PM 2/19/2007, Francisco Reyes wrote:
>Mike Tancsa writes:
>
>>Why do you need so much per server to do spam/virus scanning ?
>
>At several point in times (ie different clamav versions) clamav was 
>using more than 512MB and causing all kinds of problems because of 
>FreeBSD's default 512MB limit. We bumped the per program limit to 
>1.5MB and so far clamav has not exceeded that.


Strange, our daemons dont grow that large. Are you using LDAP lookups 
or something like that compiled against it ?  Looking at one box, 
running a dev version

% clamd --version
ClamAV devel-20070124/2607/Mon Feb 19 12:56:34 2007

Started Jan24th, its only at 119MB

Its done about 94K messages today

It usually hovers around 5-8 threads, depending on the time of day.  Right now

% ps -auxwwwH -p 13422
USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
clamav 13422  7.7  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd
clamav 13422  5.7  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd
clamav 13422  4.3  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd
clamav 13422  0.9  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd
clamav 13422  0.0  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd
clamav 13422  0.0  5.6 119460 116084  ??  Ss   24Jan07 8019:23.77 
/usr/local/sbin/clamd

% ldd /usr/local/sbin/clamd
/usr/local/sbin/clamd:
         libclamav.so.1 => /usr/local/lib/libclamav.so.1 (0x28085000)
         libz.so.3 => /lib/libz.so.3 (0x280e6000)
         libbz2.so.2 => /usr/lib/libbz2.so.2 (0x280f7000)
         libgmp.so.7 => /usr/local/lib/libgmp.so.7 (0x28108000)
         libpthread.so.2 => /usr/lib/libthr.so.2 (0x28136000)
         libc.so.6 => /lib/libc.so.6 (0x28148000)


and a version .90 started last Friday shows 74MB of mem usage.

         ---Mike 



More information about the freebsd-isp mailing list