Tweaking cPanel/WHM for lower memory usage
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.
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
Go to WHM > Service Manager > Disable Spamd
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.
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:
Apache can be quite a memory consuming monster on it’s own. To tweak, do the following:
(Press ’shift’ and ‘i’ to enable inserting/editing.)
Change the following settings:
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.