Author Topic: CPU 100% clamd  (Read 382 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CPU 100% clamd
« on: January 22, 2018, 04:25:33 PM »
When I use this command
service clamd stop
rm -f /var/run/clamd.amavisd/clamd.sock
service clamd start
Work for some min only...
Where I can find logs or something??

Offline
*
Re: CPU 100% clamd
« Reply #1 on: January 22, 2018, 06:13:10 PM »
The same problem.

Centos 7. CWP version: 0.9.8.427
When ClamAV is enabled one of core hit to 100% CPU

htop shows:
user: amavis
cpu: 100%
command: /user/sbin/clamd -c /etc/clamd/amavisd.conf --foreground=yes

when I disable ClamAV - everything is ok.

On Centos 6 with old CWP I do not have this problem.
« Last Edit: January 22, 2018, 06:17:41 PM by cwp »

Online
***
Re: CPU 100% clamd
« Reply #2 on: January 22, 2018, 06:23:21 PM »
Do you see anything suspicious in log file of clamd?

Offline
*
Re: CPU 100% clamd
« Reply #3 on: January 22, 2018, 07:40:09 PM »
Jan 22 21:36:18 server1 clamd[24183]: Received 0 file descriptor(s) from systemd.
Jan 22 21:36:18 server1 clamd[24183]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Jan 22 21:36:18 server1 clamd[24183]: Running as user amavis (UID 989, GID 987)
Jan 22 21:36:18 server1 clamd[24183]: Log file size limited to 1048576 bytes.
Jan 22 21:36:18 server1 clamd[24183]: Reading databases from /var/lib/clamav
Jan 22 21:36:18 server1 clamd[24183]: Not loading PUA signatures.
Jan 22 21:36:18 server1 clamd[24183]: Bytecode: Security mode set to "TrustSigned".
Jan 22 21:36:29 server1 clamd[24183]: Loaded 6392552 signatures.
Jan 22 21:36:31 server1 clamd[24183]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.

Online
***
Re: CPU 100% clamd
« Reply #4 on: January 22, 2018, 07:43:54 PM »
Are you getting very frequent emails or can you check your RAM usage.

Offline
*
Re: CPU 100% clamd
« Reply #5 on: January 23, 2018, 05:16:40 AM »
I have all the time big logs and I can't open... out of memory...

Offline
*
Re: CPU 100% clamd
« Reply #6 on: February 13, 2018, 07:34:10 PM »
Do you see anything suspicious in log file of clamd?

Same problem for me

Offline
*
Re: CPU 100% clamd
« Reply #7 on: February 14, 2018, 12:04:32 AM »
try to run this command
Code: [Select]
sh /scripts/clamd_fix_100_cpu_usage
« Last Edit: February 22, 2018, 10:04:33 PM by Administrator »
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.