The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. July 29, 2010, 08:02:10 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: SPAMD Eating up RAM!  (Read 229 times)
Bompa
Administrator
Expert
*****
Offline Offline

Posts: 383


View Profile WWW
« on: January 29, 2010, 12:47:15 AM »

A couple things are eating up a lot of ram on my new vps and I don't need them at all.

I have stopped two gluttons with commands I found online.

/etc/init.d/drwebd stop
/etc/init.d/httpd stop


I want to stop spamd but when I tried with the above command format,
I got error:

-bash: /etc/init.d/spamd: No such file or directory



Here is top:
Code:
    1 root      15   0 10348  744  624 S  0.0  0.1   0:29.82 init
 3730 root      15   0  6424 1128  500 S  0.0  0.1   0:03.22 syslogd
 7889 root      15   0 12712 1228  932 S  0.0  0.2   0:24.15 top
 7967 root      19   0 11928 1420 1180 S  0.0  0.2   0:00.00 mysqld_safe
 8021 mysql     15   0  180m  37m 7304 S  0.0  4.9   0:37.01 mysqld
 8174 root      18   0  104m  45m 2368 S  0.0  5.9   0:06.21 spamd
 9244 popuser   15   0  104m  43m  984 S  0.0  5.7   0:00.00 spamd
 9874 named     21   0  220m 4176 1896 S  0.0  0.5   0:01.20 named
13652 root      15   0 54136 2292 1748 S  0.0  0.3   0:00.52 master
13660 postfix   18   0 54380 2376 1824 S  0.0  0.3   0:00.05 qmgr
13732 root      25   0 40920  940  560 S  0.0  0.1   0:00.00 couriertcpd
13734 root      25   0 33608 1428 1088 S  0.0  0.2   0:00.00 courierlogger
13743 root      21   0 40920  948  560 S  0.0  0.1   0:00.00 couriertcpd
13745 root      25   0 33608 1428 1088 S  0.0  0.2   0:00.00 courierlogger
13752 root      15   0 40920  944  564 S  0.0  0.1   0:09.43 couriertcpd
13757 root      17   0 33608 1488 1136 S  0.0  0.2   0:04.19 courierlogger
13764 root      18   0 40920  944  560 S  0.0  0.1   0:00.00 couriertcpd
13766 root      25   0 33608 1428 1088 S  0.0  0.2   0:00.00 courierlogger
16323 root      18   0 96556 3756 2888 S  0.0  0.5   0:00.14 sshd
17843 root      15  -4 12604  672  360 S  0.0  0.1   0:00.00 udevd
18165 root      15   0 62616 1212  652 S  0.0  0.2   0:01.30 sshd
18176 root      15   0 21644  960  736 S  0.0  0.1   0:00.01 xinetd
18226 root      15   0 20880 1188  592 S  0.0  0.2   0:08.27 crond
18238 root      18   0 46736  824  428 S  0.0  0.1   0:00.00 saslauthd
18239 root      19   0 46736  544  148 S  0.0  0.1   0:00.00 saslauthd
19622 postfix   15   0 54196 2328 1808 S  0.0  0.3   0:00.05 tlsmgr
20212 root      16   0 12200 1736 1284 S  0.0  0.2   0:00.04 bash
24168 root      15   0 96556 3756 2872 S  0.0  0.5   0:00.04 sshd
24494 root      18   0 96560 3748 2880 S  0.0  0.5   0:00.15 sshd
26367 root      15   0 12608 1196  932 R  0.0  0.2   0:00.00 top
26618 root      15   0 12200 1744 1292 S  0.0  0.2   0:00.05 bash
30471 root      15   0 53856 2056 1520 S  0.0  0.3   0:00.02 sftp-server
32104 postfix   15   0 54200 2248 1748 S  0.0  0.3   0:00.00 pickup


So, if I can not directly stop spamd, is there something else that spamd
is tied to such as qmgr or couriertcpd?


thanks,
Bompa





Logged

Do You Know?
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8649



View Profile
« Reply #1 on: January 29, 2010, 07:37:51 AM »

have you simply tried

kill -9 (spamd's processid)

?

That ought'a do ya. Also, are you logged in as root when you try to do this? And another thought is that since popuser is one of the user accounts that has a daemon open, it could be that your mail agent is spawning one ... I have a filter called spamsieve that is not opened until I start POPing or IMAPing emails.

Another option would be to find the real process (which spamd) and then rename it x_spamd or something, then create a little empty shell script called spamd so that your system won't complain when you boot up.
Logged

It's the things you learn after you know it all that really count.
-John Wooden
Bompa
Administrator
Expert
*****
Offline Offline

Posts: 383


View Profile WWW
« Reply #2 on: January 29, 2010, 09:08:43 PM »

have you simply tried

kill -9 (spamd's processid)

Not yet.  I was thinking that it might have a "parent" daemon that would restart it.

Yes, I'm root.


thanks
Logged

Do You Know?
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!