Jones

Well-Known Member
Jul 10, 2004
47
0
156
Before I only saw running 1 process for Spamd:

root 13643 0.0 2.0 23892 19948 ? SN 07:58 0:00 /usr/bin/spamd -d

After the upgrade, I got this:

root 15754 0.0 2.2 25360 21504 ? SN 08:11 0:01 spamd child
root 15755 0.0 2.2 25348 21500 ? SN 08:11 0:00 spamd child
root 15756 0.0 2.1 25096 21244 ? SN 08:11 0:00 spamd child
root 15757 0.0 2.2 25228 21372 ? SN 08:11 0:00 spamd child
root 15758 0.0 2.1 25088 21216 ? SN 08:11 0:00 spamd child


My question: Is it possible to disable spamd child or turn it off and how?

It is eating a lot of memory. If Spamd Child is off, will it affect anything when it comes in filtering spam messages?

Looking for your prompt answer.


Thanks,
Jones
 

mr.wonderful

BANNED
Feb 1, 2004
345
1
166
You can turn off spamd from WHM. There are two or three places to do that. Spamd is only used for those users who have enabled Spamassassin from their control panel however im thinking of turning it off as well since we are filtering everyones email serverwide so whats the use of letting users turn on Spamassassin if we are filtering every message? I really dont see the point in leaving spamd running.
 

Jones

Well-Known Member
Jul 10, 2004
47
0
156
Thanks for the reply.

I know how to turn off spamd in WHM but if I turned it off, my clients will not be able to use spamassasin in Cpanel right? So I don't like to turn it off.

I know there is some way to not to run these spamd child thing....


Thanks,
Jones


mr.wonderful said:
You can turn off spamd from WHM. There are two or three places to do that. Spamd is only used for those users who have enabled Spamassassin from their control panel however im thinking of turning it off as well since we are filtering everyones email serverwide so whats the use of letting users turn on Spamassassin if we are filtering every message? I really dont see the point in leaving spamd running.
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
i want to know how to turn off "spamd child" too, any body know how to turn it off? it's using alot of RAM.
 

Angel78

Well-Known Member
May 9, 2002
413
1
318
ps aux | grep spamd | wc -l
7



yup it started after spamassassin upgrade to 3.0
 

goodmove

Well-Known Member
May 12, 2003
643
4
168
mr.wonderful said:
Spamd is only used for those users who have enabled Spamassassin from their control panel however im thinking of turning it off as well since we are filtering everyones email serverwide so whats the use of letting users turn on Spamassassin if we are filtering every message? I really dont see the point in leaving spamd running.
When you say "filtering server wide", do you mean you are running SpamAssassin alongside MailScanner?
 

beachtrader

Active Member
Feb 21, 2003
37
0
156
We are also having this problem as well on several servers. It appears spamd will get stuck on several domains and then each day open new processes on the domains. It would be nice to be able to downgrade...
 

cguimont

Well-Known Member
Jul 13, 2004
100
0
166
I had this problem too.. But after a while.. Spamd stabilized to take less memory.
 

Jones

Well-Known Member
Jul 10, 2004
47
0
156
Solution for me

Well, I searched and searched and searched and can't find any solution about this spamd child thing....

Later, I was able to find a very interesting solutions for my server and it really helps me block/reject spams coming to my box not only filtering... work like a heaven to me! because of this, I can disable spamassasin and never worry about spams again.... No more memory over load or CPU.... :)

Anyway, here is the link http://forum.ev1servers.net/showthread.php?s=&threadid=34689 .


Enjoy!
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
same problem here , a lot of spamd eating cpu
 

verdon

Well-Known Member
Nov 1, 2003
919
11
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
according to some searching on spamassassin mail list archives (http://search.gmane.org/search.php?query=&group=gmane.mail.spam.spamassassin.general) this is now default behaviour...

"List" writes:
> Hi List,
>
> I had just upgraded from 2.64 to 3.0. The first thing i notice is that there
> are spamd child processes. I have 5 in total.
>
> root 5691 0.0 1.3 30536 13604 ? S Sep29 0:28 spamd child
> root 5802 0.0 1.7 30260 17764 ? S Sep29 0:29 spamd child
> root 5887 0.0 1.1 29632 11592 ? S Sep29 0:29 spamd child
> root 5925 0.0 1.5 29764 16144 ? S Sep29 0:27 spamd child
> root 6155 0.0 1.7 30564 18176 ? S Sep29 0:30 spamd child
>
>
> This is normal?

========================================

This is the default. You can use the "-m <num>" parameter to reduce the
number of child processes.

It's fairly similar to the Apache 1.x model, except that if there are more
requests than available children, those excess requests will have to wait.

Arun

========================================

If you use spamd, yes.. as of 3.0, spamd preforks children, and by default
limits itself to 5 children max (unlike 2.xx where there was no default limit).

Read the README and UPGRADE files that came with SA.

========================================
 

nettigritty

Well-Known Member
PartnerNOC
Jan 21, 2004
192
0
166
Bangalore, India
thats not great news then .. top sorted by memory usage ...

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
9240 root 15 0 30256 29M 1812 S 0.0 2.8 0:14 3 spamd
9242 root 15 0 22868 21M 1844 S 0.0 2.1 0:08 3 spamd
9243 root 16 0 22548 21M 1772 S 0.0 2.1 0:08 3 spamd
9239 root 15 0 22172 20M 1968 S 0.0 2.0 0:09 2 spamd
9233 root 25 0 18880 17M 948 S 0.0 1.7 0:00 0 spamd
9468 mysql 15 0 19736 15M 1828 S 0.0 1.5 0:01 2 mysqld
9241 root 15 0 22524 15M 1808 S 0.0 1.5 0:10 3 spamd
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
That's normal with SA3.0.0
If your servers are getting to busy, then it's time perhaps for a separate dedicated mail server.

I often feel amused when i read the writings on the Wall ....

Host Unlimited Domains
Host Unlimited Database
Host Unlimited POP Accounts....

Well those offering that need to be on cluster setup and not the usual 99$ server deal from just about any other service provider round the corner

:D:D

Anup
 

nettigritty

Well-Known Member
PartnerNOC
Jan 21, 2004
192
0
166
Bangalore, India
do point me to a provider that offers dual xeons with HT at $99 :) with true 24/7 round the clock service thats reliable!

its not really a concern but we like keeping our loads (really) low.. too busy is out of the question - so obviously trying to put a check on whats using most resources.
 

anup123

Well-Known Member
Mar 29, 2004
889
1
168
This Planet
Hey it was in totality that it was to be interpretted.
I have found many cases when ppl boast of 120GB SCSI drives on their site.
Well Dual Xeon Or Not, no server can hold _Unlimited_ (domains, mysql db, pop a/c, subdomains and what not) which is normally offered as an _Apparent_Attraction_

Point i am trying to stress upon is that split the applications to it's own dedicated box in a cluster setup if performance is a concern :)

Nice stuff that you run from @mail :)

Anup
 

techniman

Member
Mar 14, 2004
5
0
151
in /etc/rc.d/init.d/exim find the line that starts spamd, it looks like:

$DAEMONIZE /usr/bin/spamd -d

change that line to:

$DAEMONIZE /usr/bin/spamd -d -allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=[the number of children you want]

then restart exim:
/etc/rc.d/init.d/exim restart


this works for me, hope it does the same for you.

E. Vrolijk
RedAnt
www.redant.nl