Clamscan Memory Leak

Discussion in 'Installation/Configuration' started by nikro, Feb 9, 2009.

  1. nikro

    nikro New Member

    Hello everybody,

    I moved a Domain from our old System to ISPConfig . This System runs perfectly for 10 months, but now:
    Code:
    host:~# free -m
                 total       used       free     shared    buffers     cached
    Mem:           444        440          3          0          0         13
    -/+ buffers/cache:        427         16
    Swap:         2047       1763        284
    
    I know it's not much ram, but normally there are just about 200 MB used and I increase it as soon as I can turn off the old system's VM.
    ps aux:
    Code:
    web19_nh  1355  0.1  1.2 107084  5732 ?        D    10:28   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_is  1434  0.1  1.2 107084  5848 ?        R    10:28   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_mb  1435  0.2  1.2 107080  5684 ?        D    10:28   0:20 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ch  1457  0.1  1.2 107080  5556 ?        D    10:28   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ub  1485  0.1  1.2 107080  5460 ?        D    10:28   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ub  2053  0.2  1.2 107252  5536 ?        D    10:32   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    postfix   6702  0.0  0.0  20656   428 ?        S    11:39   0:01 anvil -l -t unix -u -c
    web19_mk  8691  0.4  1.2 107060  5644 ?        D    12:05   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_mk  9344  0.5  2.8 106620 12876 ?        D    12:12   0:17 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_mb  9345  0.5  2.7 104432 12468 ?        D    12:12   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    10030     9346  0.5  2.2 107504 10376 ?        R    12:12   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ch  9347  0.5  2.7 105332 12572 ?        R    12:12   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_nh  9348  0.5  2.9 105332 13272 ?        D    12:12   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ub  9349  0.5  2.8 104428 12780 ?        R    12:12   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_is  9350  0.5  2.6 104264 12080 ?        D    12:12   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    postfix   9438  0.1  0.1  20788   636 ?        S    12:14   0:03 trivial-rewrite -n rewrite -t unix -u -c
    10030     9878  0.6  6.2 109248 28604 ?        D    12:19   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_nh  9879  0.6  4.7 109248 21676 ?        D    12:19   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_mb  9880  0.6  4.6 109248 21116 ?        D    12:19   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ch  9881  0.6  4.5 109252 20480 ?        D    12:19   0:18 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_is  9882  0.6  4.5 109248 20532 ?        D    12:19   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    web19_ub  9883  0.6  3.8 107200 17616 ?        R    12:19   0:19 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    postfix   9898  0.0  0.2  20808  1316 ?        S    12:19   0:00 local -t unix
    postfix  10110  0.0  0.1  20652   540 ?        S    12:27   0:00 pickup -l -t fifo -u -c
    web19_mk 10328  0.6  5.2 109252 23712 ?        D    12:34   0:13 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    As you can see, just web19 - the new one - is affected. This problem appears sometimes.. what could be the problem? It seems like a loop, could it be the forwarding rules?
    There are some rules like:
    [email protected] forward to
    [email protected]
    [email protected]
    [email protected]
    etc.

    Maybe that creates a loop?

    I'm glad about any hint.

    Thanks

    Sven
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This behaviour is normal. Forwarded emails get scanned separately when they arrive in every single email account. If you want to speed this up, switch to clamd.
     
  3. nikro

    nikro New Member

    till This behaviour is normal. Forwarded emails get scanned separately when they arrive in every single email account. If you want to speed this up, switch to clamd.

    Hello Till,

    thanks for your hint. But for me it seems to be more, because there is not so much traffic on that host.

    Example: A Mail to FOO@BAR is scanned one time on receiving. Let's say FOO@BAR is forwarded to USER1@BAR, USER2@BAR,....,USER10@BAR - than there will be 11 spamassasin and clamav checks of the same mail - am I right?

    But lets say there are 50 Mails checked, why is my system going crazy like that? A spam and virus scan isn't that complex I think.. and there are never more mails then 50 in the queue! There are always the same ~37 mails in the queue.

    I will change to clamd, but I'm afraid that this will not solve the real problem..
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please change to clamd, it will solve that problem.
     
  5. Gza

    Gza New Member

    how to change to clamd?

    Hi till, i want to change clamscan to clamd/clamdscan, but how can I do that?

    Gza
     
  6. nikro

    nikro New Member

    Just search the Forum, there are many threads related to this topic
     

Share This Page