Author Topic: Two Instances of Clamd running  (Read 887 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Two Instances of Clamd running
« on: November 22, 2018, 08:37:57 AM »
I've got two instances of clamd running on my server and it's sucking 60% of my Memory allocation.

Code: [Select]
top - 08:34:41 up 32 min,  1 user,  load average: 0.00, 0.04, 0.14
Tasks: 146 total,   1 running, 145 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.0 us,  1.0 sy,  0.0 ni, 97.2 id,  0.0 wa,  0.0 hi,  0.2 si,  0.7 st
KiB Mem :  1882576 total,    92308 free,  1641380 used,   148888 buff/cache
KiB Swap:   524284 total,   226848 free,   297436 used.    79476 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 5240 amavis    20   0  837436 566280   2576 S   0.0 30.1   0:14.47 clamd
 1571 amavis    20   0  837568 563556    480 S   0.0 29.9   0:16.84 clamd
 5250 amavis    20   0  367108 106644   2756 S   0.0  5.7   0:00.48 /usr/sbin/+
 5238 amavis    20   0  362956 103896   2516 S   0.0  5.5   0:01.23 /usr/sbin/+
 5251 amavis    20   0  364500 102868   1488 S   0.0  5.5   0:00.00 /usr/sbin/+

Can anyone provide any suggestions as to how I can stop one of them or how to find out why there are two instances running.

Thanks in anticipation.

Offline
*
Re: Two Instances of Clamd running
« Reply #1 on: November 22, 2018, 07:35:26 PM »
UPDATE:

So I stopped Clamd from my server control panel, and that removed PID 5241, but PID 1571 remained.

Eventually, I 'bit the bullet' and did

Code: [Select]
# kill -9 1571

which removed it, but it was immediately replaced with another instance.

Do I still need to start clamd in my web panel ?

It's a production server so I can't afford to get this wrong
« Last Edit: November 22, 2018, 07:37:07 PM by justcurious »

Offline
***
Re: Two Instances of Clamd running
« Reply #2 on: November 28, 2018, 06:29:14 PM »
One is part of Amavis for scanning mail and the other is Clamd (daemon) depending on how Amavis is setup killing the process could stop your mail from working properly