Memory

Discussion in 'General' started by planet_fox, Jul 3, 2007.

  1. planet_fox

    planet_fox Member

    Is this normaly System used 950456k ram ?

    Code:
    Tasks: 126 total,   2 running, 124 sleeping,   0 stopped,   0 zombie
    Cpu(s): 17.0% us,  4.0% sy,  0.0% ni, 76.0% id,  3.0% wa,  0.0% hi,  0.0% si
    Mem:   1035024k total,   950456k used,    84568k free,   140140k buffers
    Swap:  2096440k total,    10004k used,  2086436k free,   252536k cached
    
    Code:
    2108 web7_mic  25   0 31624  26m 5040 R 92.8  2.6   0:13.84 clamscan
    1490 amavis    15   0 93544  81m  13m S  4.0  8.0   0:01.41 amavisd-new
     1490 amavis    15   0 93544  81m  13m S  1.3  8.0   0:01.45 amavisd-new
     2449 root      16   0  1556  608 1380 S  0.3  0.1   0:01.09 syslogd
    31461 root      15   0  4736 1628 4524 S  0.3  0.2   0:00.06 master
      603 postfix   15   0  6452 2768 5808 S  0.3  0.3   0:00.07 smtpd
      627 postfix   16   0  4936 2132 4596 S  0.3  0.2   0:00.06 cleanup
     2092 postfix   16   0  6304 2520 5784 S  0.3  0.2   0:00.01 smtpd
    
    
    I think Problem is Amavis clamav and spamfilter, What can I do ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, the memory usage is normal. Linux uses always all available memory to cache requests for the harddisk. As long as not several hundred MB of swap are used, everything should be fine.
     
  3. planet_fox

    planet_fox Member

    Ok, and sometimes CPU use 100%
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. planet_fox

    planet_fox Member

    hm

    I have this change


    /home/admispconfig/ispconfig/tools/clamav/bin/clamassassin

    to

    Code:
    CLAMSCAN=/usr/bin/clamdscan
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Can you see with "top" which processes are eating up the cpu power?
     
  7. planet_fox

    planet_fox Member

    Code:
    Jul  5 23:02:23 serv amavis[5631]: (05631-03) (!!) WARN: all primary virus scanners failed, considering backups
    Jul  5 23:02:27 serv amavis[5866]: (05866-02-2) (!!) WARN: all primary virus scanners failed, considering backups
    Jul  5 23:04:53 serv amavis[5631]: (05631-03-2) (!!) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 54) line 268.
    Jul  5 23:05:01 serv amavis[5631]: (05631-03-2) (!!) WARN: all primary virus scanners failed, considering backups
    Jul  5 23:05:02 serv amavis[5866]: (05866-02-3) (!!) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 54) line 268.
    Jul  5 23:05:06 serv amavis[5866]: (05866-02-3) (!!) WARN: all primary virus scanners failed, considering backups
    Jul  5 23:07:16 serv amavis[5866]: (05866-03) (!!) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 54) line 268.
    Jul  5 23:07:21 serv amavis[5866]: (05866-03) (!!) WARN: all primary virus scanners failed, considering backups
    Jul  5 23:07:24 serv amavis[5631]: (05631-03-3) (!!) ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 54) line 268.
    Jul  5 23:07:33 serv amavis[5631]: (05631-03-3) (!!) WARN: all primary virus scanners failed, considering backups
    
     
  8. planet_fox

    planet_fox Member

  9. planet_fox

    planet_fox Member

    I think it is am
    Code:
    serv:/home/x# ps aux | grep clamscan
    10201    14297 45.0  2.5  31580 26820 ?        R    23:57   0:13 /home/admispconfig/ispconfig/tools/clamav/bin/clamscan --no-summary --stdout -
    amavis   14302 34.1  2.4  29560 24904 ?        R    23:57   0:07 /usr/bin/clamscan --stdout --disable-summary -r --tempdir=/var/lib/amavis/tmp /var/lib/amavis/tmp/amavis-20070705T235057-13399/parts
    amavis   14303 33.8  2.4  29560 24904 ?        R    23:57   0:07 /usr/bin/clamscan --stdout --disable-summary -r --tempdir=/var/lib/amavis/tmp /var/lib/amavis/tmp/amavis-20070705T235303-13572/parts
    Code:
    top
    
    14523 amavis     25    0  46400  40m 5104 R 13.6   4.0    0:19.20 clamscan
    15149 web118_i   25   0  31844  26m 5040 R 13.6  2.6   0:16.97 clamscan
    14513 amavis      25    0  46400  40m 5104 R 13.3   4.0     0:19.40 clamscan
    14460 web118_i   25   0 44236  39m 7076 R 12.6  3.9    0:28.75 spamassassin
    15188 web11_fl   25   0  31844  26m 5040 R 11.0   2.6    0:16.79 clamscan
    14508 web11_fl   25   0  32108  26m 5040 R 10.3   2.6    0:21.56 clamscan
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    it looks as you have amavis installed, this will not work with the ispconfig antivirus setup, or you must configure it without being integrated in ispconfig and disable the spam and antivirus filtering in ispconfig.
     
  11. planet_fox

    planet_fox Member

    hm what is better for perfomance and how can i disable clamav in isp config .
    Must I all webs with virusscanner ofline set ?
     
  12. planet_fox

    planet_fox Member

    can I stop clamav under /etc/clamav.conf ?
     
  13. planet_fox

    planet_fox Member

    Code:
    7501713C50B     5941 Fri Jul  6 14:19:43  [email protected]
    (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=07422-03, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 54) line 268. (in reply to end of DATA command))
                                             [email protected]
    
     
  14. falko

    falko Super Moderator ISPConfig Developer

  15. planet_fox

    planet_fox Member

    ok thanks, how can I use http://www.debian.org/volatile/ for etch . I have Problem when I add backprts to sourcelist and than make aptitude update .
    Problem is pgp code is not aded how can I added
     
  16. falko

    falko Super Moderator ISPConfig Developer

    Just add
    Code:
    deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
    to /etc/apt/sources.list and run
    Code:
    apt-get update
     
  17. planet_fox

    planet_fox Member

    apt-get update give this out

    Code:
    W: GPG error: http://volatile.debian.org etch/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EC61E0B0BBE55AB3
    W: GPG error: http://etc.inittab.org etch/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C514AF8E4BA401C3
    W: You may want to run apt-get update to correct these problems
    
     
  18. planet_fox

    planet_fox Member

    First Step change

    CLAMSCAN=/home/admispconfig/ispconfig/tools/clamav/bin/clamscan
    to

    Code:
    CLAMSCAN=/usr/bin/clamdscan
    2.

    In "ScanMail " to true

    3.

    In /etc/clamav/freshclam.conf and /home/admispconfig/ispconfig/tools/clamav/etc/freshclam.conf I changed the NotifyClamd line :

    Code:
    NotifyClamd /etc/clamav/clamd.conf
    Is that corect

    dpkg --get-selections |grep clam |awk {'print $1'}

    Code:
    dpkg --get-selections |grep clam
    clamav                                          install
    clamav-base                                     install
    clamav-daemon                                   install
    clamav-freshclam                                install
    libclamav-dev                                   install
    libclamav1                                      deinstall
    libclamav2                                      install
    php4-clamavlib                                  deinstall
    php5-clamavlib                                  deinstall
    
     

Share This Page