Guten Tag,
wie es scheint will mich mein Mailserver ein wenig ärgern.
Nachdem ich bemerkt habe dass mein MySql Server extrem langsam ist,
habe ich mich auf meine Maschine verbunden und ein wenig rumgestöbert.
dabei habe ich bemerkt dass clamd fast 100% cpu beansprucht:
der Auszug von top ist übrigends nach einem Neustart entstanden der die Last aber nicht ändern konnte.
Hier die Logdateien bzw. auszüge davon:
/var/log/mail.log
/var/log/mail.err
Ich sehe darin zwar dass es ein Problem mit dem Socket gibt, weiss aber nicht wie ich es lösen kann da ich am scanner nichts geändert habe.
Wäre nett wenn mir jemand helfen kann die Last vom Server zu nehmen.
Viele Grüße
madmax
wie es scheint will mich mein Mailserver ein wenig ärgern.
Nachdem ich bemerkt habe dass mein MySql Server extrem langsam ist,
habe ich mich auf meine Maschine verbunden und ein wenig rumgestöbert.
dabei habe ich bemerkt dass clamd fast 100% cpu beansprucht:
Code:
max@myhost:~$ top
top - 17:08:12 up 9 min, 1 user, load average: 2.06, 1.82, 0.97
Tasks: 101 total, 4 running, 97 sleeping, 0 stopped, 0 zombie
Cpu(s): 84.7%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 15.3%st
Mem: 204984k total, 202348k used, 2636k free, 1044k buffers
Swap: 255992k total, 22764k used, 233228k free, 43092k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12359 clamav 25 0 37732 31m 488 R 43.8 15.7 2:05.67 clamd
12381 amavis 25 0 10780 6640 1084 R 41.1 3.2 0:59.34 clamscan
1 root 18 0 1776 620 532 S 0.0 0.3 0:01.21 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 xenwatch
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenbus
16 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
17 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
20 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
84 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
85 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
86 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kswapd0
Hier die Logdateien bzw. auszüge davon:
/var/log/mail.log
Code:
Feb 25 17:05:54 myhost fetchmail[12157]: awakened at Mon Feb 25 17:05:54 2008
Feb 25 17:05:55 myhost fetchmail[12157]: 1 message for eu425428 at pop.tele2.it (16549 octets).
Feb 25 17:05:56 myhost postfix/smtpd[12366]: connect from localhost[127.0.0.1]
Feb 25 17:05:56 myhost postfix/smtpd[12366]: AD7D55C0D4: client=localhost[127.0.0.1]
Feb 25 17:05:56 myhost postfix/cleanup[12374]: AD7D55C0D4: message-id=<6A.5C.19205.7A6E2C74@vmta1.contactlab.it>
Feb 25 17:05:56 myhost fetchmail[12157]: reading message eu425428@pop.tele2.it:1 of 1 (16549 octets) flushed
Feb 25 17:05:56 myhost postfix/qmgr[11957]: AD7D55C0D4: from=<2763211.1718.1000117@c.contactlab.it>, size=16857, nrcpt=1 (queue active)
Feb 25 17:05:56 myhost postfix/smtpd[12366]: disconnect from localhost[127.0.0.1]
Feb 25 17:05:56 myhost fetchmail[12157]: sleeping at Mon Feb 25 17:05:56 2008 for 300 seconds
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!) /usr/bin/clamscan is taking longer than 315 s and will be killed
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!) killing process [12042] running /usr/bin/clamscan
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!) run_av: timed out
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!!) ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!!) TROUBLE in check_mail: 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!) PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20080225T170036-11715
Feb 25 17:05:58 myhost postfix/smtp[11960]: 70E6F5C0BD: to=<fetchmail.myhost@localhost>, relay=127.0.0.1[127.0.0.1]:10024, delay=1088, delays=766/0.14/0.01/323, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=11715-01, 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462. (in reply to end of DATA command))
Feb 25 17:05:58 myhost amavis[11716]: (11716-01) (!) ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory, retrying (2)
Feb 25 17:06:04 myhost amavis[11716]: (11716-01) (!!) 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 48) line 268.
Feb 25 17:06:05 myhost amavis[11716]: (11716-01) (!!) WARN: all primary virus scanners failed, considering backups
Feb 25 17:10:56 myhost fetchmail[12157]: awakened at Mon Feb 25 17:10:56 2008
Feb 25 17:10:57 myhost fetchmail[12157]: sleeping at Mon Feb 25 17:10:57 2008 for 300 seconds
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!) /usr/bin/clamscan is taking longer than 315 s and will be killed
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!) killing process [12381] running /usr/bin/clamscan
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!) run_av: timed out
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!!) ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!!) TROUBLE in check_mail: 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!) PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20080225T170557-11716
Feb 25 17:11:20 myhost postfix/smtp[12375]: AD7D55C0D4: to=<fetchmail.myhost@localhost>, relay=127.0.0.1[127.0.0.1]:10024, delay=324, delays=0.15/0.01/0.36/323, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=11716-01, 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462. (in reply to end of DATA command))
Code:
eb 25 16:57:46 myhost amavis[12706]: (12706-05) (!!) TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 45) line 788, <GEN54> line 32.
Feb 25 17:00:43 myhost amavis[11715]: (11715-01) (!!) 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 48) line 268.
Feb 25 17:00:43 myhost amavis[11715]: (11715-01) (!!) WARN: all primary virus scanners failed, considering backups
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!!) ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:05:58 myhost amavis[11715]: (11715-01) (!!) TROUBLE in check_mail: 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:06:04 myhost amavis[11716]: (11716-01) (!!) 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 48) line 268.
Feb 25 17:06:05 myhost amavis[11716]: (11716-01) (!!) WARN: all primary virus scanners failed, considering backups
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!!) ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Feb 25 17:11:20 myhost amavis[11716]: (11716-01) (!!) TROUBLE in check_mail: 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 48) line 268.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan timed out at (eval 48) line 462.
Ich sehe darin zwar dass es ein Problem mit dem Socket gibt, weiss aber nicht wie ich es lösen kann da ich am scanner nichts geändert habe.
Wäre nett wenn mir jemand helfen kann die Last vom Server zu nehmen.
Viele Grüße
madmax