Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm only running on a low memory system so would like to run only one clamd, but i have googled for hours trying to find the answer with no luck. I tried clamscan instead but it takes far too long to scan each email.

Does anyone know how to limit the clamd to run only one 'thread'?


share|improve this question
Just a guess, but have you tried the MaxThreads setting in clamd.conf? – depquid Mar 16 '13 at 15:09
yes, and still starts 2 processes even with MaxThreads 1 – Christian Mar 16 '13 at 15:53
Two processes or two threads? – depquid Mar 16 '13 at 16:19
As you see it in the image. I thought it was two threads but they have a different PID, but if you shut one down, the other goes, which to me is more like threads? – Christian Mar 16 '13 at 16:45
Centos 6.3 x86_64 512MB RAM. Its one of amazon's EC2 micro servers – Christian Mar 16 '13 at 16:53

Your screenshot shows the threads have not used any time at all, so this shouldn't be a concern (several clamd running will at least share the executable, and probably most of the data areas too, so they should not be a memory burden). And it might be that there is a principal clamd process, which spawns the worker threads and manages them. So two clamds running would be the right number for one thread.

What are you using that machine for? Is that the mail server? Serving mail by POP or IMAP (or via webmail) needs memory. RAM is cheap, buy some more...

share|improve this answer
It's running on one of Amazon's EC2 micro instances which is a free solution we offer to start-up businesses in my country. So we cant upgrade the RAM unfortunately :( I'm contemplating having a dedicated EC2 running spam/AV checking though for all clients. – Christian Mar 17 '13 at 8:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.