SpamAssassin High CPU Usage

Started by Starburst, September 06, 2020, 03:44:16 AM

Previous topic - Next topic

brack

Quote from: CoriaWeb Hosting on September 06, 2020, 12:36:02 PM

Today we have had problems with the use of CPU with the process clamd/amavis, if it serves you I pass this link where I put 3 commands that have solved it and eliminated the use of 100% CPU.

https://www.coriaweb.hosting/clientes/index.php/knowledgebase/33/Amavis-orClamd-esta-utilizando-el-100-de-CPU.html

I am still having this problem.
I did try the solutions but it doesn't work. It's starting again after a while.
Any solution?

https://prnt.sc/uj47u6

Starburst

Still do intermittently as always.

It's really noticeable if you only have 1 CPU, if you have 4+ then 1 CPU maxing out doesn't affect much.

CoriaWeb Hosting

Can you try to execute this command? Sometimes it solves it.

sh /scripts/clamd_fix_100_cpu_usage
Partner de CWP

Hosting de calidad en España con soporte en Español para CWP - https://www.coriaweb.hosting

brack

Quote from: CoriaWeb Hosting on September 18, 2020, 07:44:35 AM
Can you try to execute this command? Sometimes it solves it.

sh /scripts/clamd_fix_100_cpu_usage
The problem continues

Ozzi


brack

Guys, I tried all methods but none of them work.
The problem is starting again after a while.
This is really a bad situation.

Any suggestions for solution?


venty

High productivity has not disappeared for me?

Starburst

Quote from: venty on September 23, 2020, 04:45:01 AM
High productivity has not disappeared for me?

How many CPU's and RAM does the box have?

venty

Quote from: Starburst on September 23, 2020, 07:02:47 AM
Quote from: venty on September 23, 2020, 04:45:01 AM
High productivity has not disappeared for me?

How many CPU's and RAM does the box have?

2  x  CPU Model: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
CPU Details: 8 Core (2933 MHz)
RAM - 28 GB

Starburst

That definitely should be enough.
Usually clam has a problem with a single CPU and 1-2GB of RAM

venty

Quote from: Starburst on September 23, 2020, 03:51:58 PM
That definitely should be enough.
Usually clam has a problem with a single CPU and 1-2GB of RAM

High productivity has not disappeared for me?

Starburst

What happens when you run: sh /scripts/clamd_fix_100_cpu_usage

Usually that takes care of the problem, but only pops back up after a server reboot.

venty

Of what happens and why? and is there a lasting solution ...?

Starburst

I'm guessing its a bug in clamav and/or spamassassin with a cpu/memory leak.

On CentOS 7 I ran: clamscan --version

And got the current version (ClamAV 0.102.4) in the epel repo.

On a server I don't have spamassassin running, just ClamAV there isn't a problem.

venty