Help - Search - Members - Calendar
Full Version: Saving Memory by Removing SpamAssassin and DrWeb?
The Planet Forums > System Administration > Virtualization
Ace
OK...

When I received my 128MB (cheapest) VPS from EV1, oomguarpages used were over 20,000 of 26,112. I was also getting red zone warning from the fresh default install. After noticing that that SpamAssassin and DrWeb were running, but not usable, I gleaned the following from around the web to remove them:

rpm -qa | grep "drweb" | xargs rpm -e
rpm -qa | grep "spamassassin" | xargs rpm -e

After a reboot, I was using a whopping 2,900 of 26,112 oomguarpages!!! :eek: Removing these unusable programs saved over half of my available RAM...

The system seems stable, and works fine now -- although I am still testing.

Has anyone else had a similar experience? Am I missing something?

(Why is this the default installation, when it is so unusable? Is there anything I should watch out for?)

Thanks!

~Ace
spytrdr
thanks for the tip...
i just removed both things, rebooted the VPS, and now resource usage is much lower and there is a very noticeable increase in responsiveness.
Gary Simat
Yea on my vps's i dont install those packages by default, ive noticed all my clients who install them submit a trouble ticket for resource issues and in the end its the same result of removing them.
spytrdr
i'd like to remove PostgreSQL now...
paulius
QUOTE (spytrdr)
i'd like to remove PostgreSQL now...


I don't even think that it's installed by default! There is support for it... But now installed.
Simon
This worked perfectly. I reduced the system load from 56000 to 4792...

Do you think that programs are needed to run the server? I´m referring to spamassassin and drweb. What are their function?

Ty Simon.
Gary Simat
spamassasin is a spam scanner for your mail server and drweb scans for viruses, both are not needed and throw load way up.
spytrdr
Is there a safe way to remove PostgreSQL? I only use MySQL and don't need it.
Ravean
Just ran the:

rpm -qa | grep "drweb" | xargs rpm -e

and

rpm -qa | grep "spamassassin" | xargs rpm -e

First one worked perfectly, the second command returned this messages for each e-mail address (e-mail address changed):

Delete spamassassin preferences from .qmail files for mailnames
Delete for "bob@bob.com"
Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/CmdManage.pm line 12.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/CmdManage.pm line 12.
Compilation failed in require at /usr/local/psa/admin/sbin/spammng line 45.

Is that ok?
paulius
QUOTE (spytrdr)
Is there a safe way to remove PostgreSQL? I only use MySQL and don't need it.


Yes. Simply use the same RPM command to find the package for Postegre.
spytrdr
paulius,
just tried but failed, there are dependencies:

error: Failed dependencies:
libpq.so.3 is needed by (installed) perl-DBD-Pg-1.21-2
libpq.so.3 is needed by (installed) php-pgsql-4.3.2-24.ent
StevensOnln1
Just remove the dependencies. Those are only the PostgreSQL packages for perl and PHP, so you don't need them if you don't want PostgreSQL installed. icon_smile.gif
spytrdr
cool, that did the trick
pedrodj
QUOTE (StevensOnln1)
Just remove the dependencies. Those are only the PostgreSQL packages for perl and PHP, so you don't need them if you don't want PostgreSQL installed. icon_smile.gif


how can i remove dependencies ?

[root@plesk ~]# rpm -qa | grep "postgres" | xargs rpm -e
error: Failed dependencies:
libpq.so.3 is needed by (installed) php-pgsql-4.3.9-3.18.i386

thank you icon_wink.gif
markcausa
Actually, Spam Assassin was exactly what forced me to double my RAM on my cPanel server!

It's a freakin' hog of RAM. I'm using 1GB now, and there have been no problems anymore.

My server was just running out of RAM before. :eek:
markcausa
There's a way to do it right in WHM.

Two steps, actually:
1) Tweak Settings > Uncheck the following
- SpamAssassin Spam Filter
- SpamAssassin Spam Box delivery for messages marked as spam (user configurable)

2) Service Manager > Uncheck the following
- spamd SpamAssasin Server (if you choose to disable this, you should disable SpamAssasin in tweak settings as well) <-- Which we just did.


These are good instructions for people who prefer the not so scary GUI, instead of SSH. icon_smile.gif
spytrdr
Another option would be to use Google Apps for your Domain, and use Gmail -and its excellent spam filter- with your own domain name instead of *@gmail.com
https://www.google.com/a/
I am seriously considering this.
Paris
Many thanks for the advice! icon_smile.gif
Hector
We removed DrWeb and now Qmail doesn't restart.
markcausa
Yeah, I did that here: http://phireme.com

Works great, but I need the whole webmail and pop3 thing going on with custom addresses. icon_razz.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.