PDA

View Full Version : Memory


planet_fox
3rd July 2007, 10:24
Is this normaly System used 950456k ram ?


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



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 ?

till
3rd July 2007, 10:27
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.

planet_fox
3rd July 2007, 10:34
Ok, and sometimes CPU use 100%

till
3rd July 2007, 10:42
For the high CPU use of clamav, have a look here:

http://www.howtoforge.com/forums/showthread.php?t=13385&highlight=clamassassin

planet_fox
3rd July 2007, 12:19
hm

I have this change


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

to

CLAMSCAN=/usr/bin/clamdscan

till
4th July 2007, 11:18
Can you see with "top" which processes are eating up the cpu power?

planet_fox
6th July 2007, 00:12
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

planet_fox
6th July 2007, 00:13
gives for your link a howto ?

http://www.howtoforge.com/forums/sho...t=clamassassin

planet_fox
6th July 2007, 01:02
I think it is am
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


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

till
6th July 2007, 12:17
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.

planet_fox
6th July 2007, 13:52
hm what is better for perfomance and how can i disable clamav in isp config .
Must I all webs with virusscanner ofline set ?

planet_fox
6th July 2007, 15:22
can I stop clamav under /etc/clamav.conf ?

planet_fox
6th July 2007, 16:28
7501713C50B 5941 Fri Jul 6 14:19:43 test@online.de
(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))
info@neuemedia.de

falko
7th July 2007, 17:44
Maybe these threads help you:
http://www.howtoforge.com/forums/showthread.php?t=12860&highlight=ispconfig+clamd
http://www.howtoforge.com/forums/showthread.php?t=13385&highlight=clamassassin

planet_fox
7th July 2007, 19:24
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

falko
8th July 2007, 17:19
Just add deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free to /etc/apt/sources.list and run apt-get update

planet_fox
9th July 2007, 13:04
apt-get update give this out

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

planet_fox
9th July 2007, 13:51
First Step change

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

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 :

NotifyClamd /etc/clamav/clamd.conf

Is that corect

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


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