Author Topic: CWP Centos 7 - clam 100% CPU  (Read 12291 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP Centos 7 - clam 100% CPU
« on: March 05, 2017, 03:29:54 AM »
I have a new installation of CWP Centos 7 and clam uses me 100% of the CPU, if I stop it I receive no mails in the domains, the clam service opens and closes processes since the pid according to "top" constantly changes.

In postfix I get the following error:

Code: [Select]
Mar  5 00:19:11 vmi107131 clamd[4954]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Mar  5 00:19:12 vmi107131 clamd[4968]: Received 0 file descriptor(s) from systemd.
Mar  5 00:19:12 vmi107131 clamd[4968]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar  5 00:19:12 vmi107131 clamd[4968]: Running as user amavis (UID 989, GID 988)
Mar  5 00:19:12 vmi107131 clamd[4968]: Log file size limited to 1048576 bytes.
Mar  5 00:19:12 vmi107131 clamd[4968]: Reading databases from /var/lib/clamav
Mar  5 00:19:12 vmi107131 clamd[4968]: Not loading PUA signatures.
Mar  5 00:19:12 vmi107131 clamd[4968]: Bytecode: Security mode set to "TrustSigned".
Mar  5 00:19:21 vmi107131 clamd[4968]: Loaded 5939026 signatures.
Mar  5 00:19:23 vmi107131 clamd[4968]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Mar  5 00:19:23 vmi107131 clamd[4987]: Received 0 file descriptor(s) from systemd.
Mar  5 00:19:23 vmi107131 clamd[4987]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar  5 00:19:23 vmi107131 clamd[4987]: Running as user amavis (UID 989, GID 988)
Mar  5 00:19:23 vmi107131 clamd[4987]: Log file size limited to 1048576 bytes.
Mar  5 00:19:23 vmi107131 clamd[4987]: Reading databases from /var/lib/clamav
Mar  5 00:19:23 vmi107131 clamd[4987]: Not loading PUA signatures.
Mar  5 00:19:23 vmi107131 clamd[4987]: Bytecode: Security mode set to "TrustSigned".
Mar  5 00:19:33 vmi107131 clamd[4987]: Loaded 5939026 signatures.
Mar  5 00:19:34 vmi107131 clamd[4987]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Mar  5 00:19:35 vmi107131 clamd[4997]: Received 0 file descriptor(s) from systemd.
Mar  5 00:19:35 vmi107131 clamd[4997]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar  5 00:19:35 vmi107131 clamd[4997]: Running as user amavis (UID 989, GID 988)
Mar  5 00:19:35 vmi107131 clamd[4997]: Log file size limited to 1048576 bytes.
Mar  5 00:19:35 vmi107131 clamd[4997]: Reading databases from /var/lib/clamav
Mar  5 00:19:35 vmi107131 clamd[4997]: Not loading PUA signatures.
Mar  5 00:19:35 vmi107131 clamd[4997]: Bytecode: Security mode set to "TrustSigned".
Mar  5 00:19:44 vmi107131 clamd[4997]: Loaded 5939026 signatures.
Mar  5 00:19:45 vmi107131 clamd[4997]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Mar  5 00:19:46 vmi107131 clamd[5008]: Received 0 file descriptor(s) from systemd.
Mar  5 00:19:46 vmi107131 clamd[5008]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar  5 00:19:46 vmi107131 clamd[5008]: Running as user amavis (UID 989, GID 988)
Mar  5 00:19:46 vmi107131 clamd[5008]: Log file size limited to 1048576 bytes.
Mar  5 00:19:46 vmi107131 clamd[5008]: Reading databases from /var/lib/clamav
Mar  5 00:19:46 vmi107131 clamd[5008]: Not loading PUA signatures.
Mar  5 00:19:46 vmi107131 clamd[5008]: Bytecode: Security mode set to "TrustSigned".
Mar  5 00:19:55 vmi107131 clamd[5008]: Loaded 5939026 signatures.
Mar  5 00:19:56 vmi107131 clamd[5008]: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.
Mar  5 00:19:57 vmi107131 clamd[5019]: Received 0 file descriptor(s) from systemd.
Mar  5 00:19:57 vmi107131 clamd[5019]: clamd daemon 0.99.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Mar  5 00:19:57 vmi107131 clamd[5019]: Running as user amavis (UID 989, GID 988)
Mar  5 00:19:57 vmi107131 clamd[5019]: Log file size limited to 1048576 bytes.
Mar  5 00:19:57 vmi107131 clamd[5019]: Reading databases from /var/lib/clamav
Mar  5 00:19:57 vmi107131 clamd[5019]: Not loading PUA signatures.

And every 3 hours I get the following email:

Code: [Select]
Cron <root@vmi107131> /usr/share/clamav/freshclam-sleep

WARNING: update of clamav database is disabled; please see
  '/etc/sysconfig/freshclam'
  for information how to enable the periodic update resp. how to turn
  off this message.

The installation is with CWP7PRO and I need to leave the server stably. I have another VPS with the CWP6PRO version and it works without any problem, I do not want to go back to version 6 in my new VPS, I need help from the developer.

Offline
*
Re: CWP Centos 7 - clam 100% CPU
« Reply #1 on: April 28, 2017, 02:38:53 PM »
On my setup this was caused by:

cwpssd clamd: ERROR: LOCAL: Socket file /var/run/clamd.amavisd/clamd.sock is in use by another process.

So...

service clamd stop
rm -f /var/run/clamd.amavisd/clamd.sock
service clamd start

solved it for me.

Offline
*
Re: CWP Centos 7 - clam 100% CPU
« Reply #2 on: December 09, 2017, 02:13:48 PM »
service clamd stop
rm -f /var/run/clamd.amavisd/clamd.sock
service clamd start

solved it for me.

thanks