{"id":310,"date":"2010-06-11T04:51:16","date_gmt":"2010-06-11T10:51:16","guid":{"rendered":"http:\/\/blog.supportpro.com\/?p=310"},"modified":"2019-10-30T06:15:33","modified_gmt":"2019-10-30T12:15:33","slug":"server-crash-every-day-httpd-consumes-all-memory","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/server-crash-every-day-httpd-consumes-all-memory\/","title":{"rendered":"Server crash every day, httpd consumes all memory"},"content":{"rendered":"<p>Do the following:<\/p>\n<p>1. Upgrade the kernel. The one you are running is slow, has bugs and has security vulnerabilities<\/p>\n<p>2. Make sure you are an up to date compilation of httpd and php (i.e. rebuild it through WHM).<\/p>\n<p>3. Check in WHM &gt; Apache Status to see what the children hogging resources are doing<\/p>\n<p><!--more--><\/p>\n<p>4. When the server is under load, run the following to see if youre getting DOSed from a single IP address:<\/p>\n<p>netstat -autpn | grep :80<\/p>\n<p>If you are, install an iptables firewall (e.g. APF wth anti-dos enabled and BFD installed) and block it. This would be a good idea anyway.<\/p>\n<p>5. Install mod_dosevasive and mod_security<\/p>\n<p>Also Modify the following to a reasonable value in Whm<\/p>\n<p>WHM &gt; Security &gt; Modify Apache Memory Usage<\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/www.supportpro.com\/freecheckup.php\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do the following: 1. Upgrade the kernel. The one you are running is slow, has bugs and has security vulnerabilities 2. Make sure you are an up to date compilation&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-310","post","type-post","status-publish","format-standard","hentry","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":2,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":4480,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions\/4480"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}