{"id":1403,"date":"2014-03-30T21:00:55","date_gmt":"2014-03-30T19:00:55","guid":{"rendered":"https:\/\/www.hostking.host\/blog\/?p=1403"},"modified":"2014-03-30T21:00:55","modified_gmt":"2014-03-30T19:00:55","slug":"tweaking-cpanelwhm-lower-memory-usage","status":"publish","type":"post","link":"https:\/\/www.hostking.host\/blog\/tweaking-cpanelwhm-lower-memory-usage\/","title":{"rendered":"Tweaking cPanel\/WHM for lower memory usage"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1403\" class=\"elementor elementor-1403\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4d961803 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4d961803\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-17eb2957\" data-id=\"17eb2957\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-698e20e6 elementor-widget elementor-widget-text-editor\" data-id=\"698e20e6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>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.<\/p><p><strong>Stopping SpamAssassin<\/strong><\/p><p>This program isn\u2019t overly important to the stopping of spam. To turn it off do the following:<\/p><p>Go to WHM &gt; Server Configuration &gt; Tweak Settings &gt; Disable Spamd<\/p><p>And:<\/p><p>Go to WHM &gt; Service Manager &gt; Disable Spamd<\/p><p><strong>Stopping Mailman<\/strong><\/p><p>If you or none of your customers aren\u2019t running any mail listings through cPanel, it would be a good idea to disable Mailman.<\/p><p>Go to WHM &gt; Server Configuration &gt; Tweak Settings &gt; Disable Mailman<\/p><p><strong>Never Use Tomcat on a VPS<\/strong><\/p><p>Never run TomCat on a VPS because of it\u2019s high RAM needs.<\/p><p><strong>Disable CatchAll<\/strong><\/p><p>If you\u2019re undergoing a mail attack, catch all can use up many resources + storage. To disable do the following:<\/p><p>Go to WHM &gt; Server Configuration &gt; Tweak Settings &gt; Change to :fail:<\/p><p><strong>Tweak Apache<\/strong><\/p><p>Apache can be quite a memory consuming monster on it\u2019s own. To tweak, do the following:<\/p><p>vi \/etc\/httpd\/conf\/httpd.conf<\/p><p>(Press \u2019shift\u2019 and \u2018i\u2019 to enable inserting\/editing.)<\/p><p>Change the following settings:<\/p><p>MinSpareServers 2<br \/>MaxSpareServers 5<\/p><p>StartServers 3<\/p><p>Save the file by pressing \u2018esc\u2019, then type \u2018:wq:\u2019, then hit return.<\/p><p>After that, restart Apache: \/etc\/init.d\/httpd restart<\/p><p>All that should reduce your memory useage by a large amount.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1404,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-1403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-and-web-hosting","entry"],"_links":{"self":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/1403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/comments?post=1403"}],"version-history":[{"count":0,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/1403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media\/1404"}],"wp:attachment":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media?parent=1403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/categories?post=1403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/tags?post=1403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}