Tuesday, 25 August 2009

Tweaking cPanel For Lower Memory Consumption

Do you find that your VPS or dedicated machine is regularly running out of memory because of cPanel? The following tutorial will help you overcome this, and help you to make your machine run faster.


Stopping SpamAssassin


This program isn’t overly important to the stopping of spam. To turn it off do the following:


Go to WHM > Server Configuration > Tweak Settings > Disable Spamd


And:


Go to WHM > Service Manager > Disable Spamd


Stopping Mailman


If you or none of your customers aren’t running any mail listings through cPanel, it would be a good idea to disable Mailman.


Go to WHM > Server Configuration > Tweak Settings > Disable Mailman


Never Use Tomcat on a VPS


Never run TomCat on a VPS because of it’s high RAM needs.


Disable CatchAll


If you’re undergoing a mail attack, catch all can use up many resources + storage. To disable do the following:


Go to WHM > Server Configuration > Tweak Settings > Change to :fail:


Tweak Apache


Apache can be quite a memory consuming monster on it’s own. To tweak, do the following:


vi /etc/httpd/conf/httpd.conf


(Press ’shift’ and ‘i’ to enable inserting/editing.)


Change the following settings:



MinSpareServers 2
MaxSpareServers 5

StartServers 3


Save the file by pressing ‘esc’, then type ‘:wq:’, then hit return.


After that, restart Apache: /etc/init.d/httpd restart


All that should reduce your memory useage by a large amount.

No comments:

Post a Comment