
{"id":213,"date":"2011-03-13T19:01:23","date_gmt":"2011-03-13T19:01:23","guid":{"rendered":"http:\/\/tech-no.104.210.61.21.xip.io\/?p=213"},"modified":"2011-03-13T19:01:23","modified_gmt":"2011-03-13T19:01:23","slug":"apache-server-will-not-start-due-to-memory-leak","status":"publish","type":"post","link":"https:\/\/tech-no.org\/?p=213","title":{"rendered":"Apache Server will not start due to memory leak."},"content":{"rendered":"<p><a href=\"http:\/\/tech-no.104.210.61.21.xip.io\/wp-content\/uploads\/sites\/4\/2011\/03\/virtualmin-logo-220x45.png\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-215\" title=\"virtualmin-logo-220x45\" src=\"http:\/\/tech-no.104.210.61.21.xip.io\/wp-content\/uploads\/sites\/4\/2011\/03\/virtualmin-logo-220x45.png\" alt=\"\" width=\"220\" height=\"45\" srcset=\"https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2011\/03\/virtualmin-logo-220x45.png 220w, https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2011\/03\/virtualmin-logo-220x45-150x30.png 150w\" sizes=\"(max-width: 220px) 100vw, 220px\" \/><\/a><\/p>\n<p>Over the last year or so i have had to restart my Apache Webserver due to a memory leak (this is my theory so far) The behavior shows up as some or all of the web servers going unresponsive and i have to run a script i created to kill the httpd processes and restart httpd. While this does the job, i have been looking to implement Monit to auto restart the processes so i don&#8217;t have to do anything. Well this morning a different problem happened. i ran the script and the web server started normally. Then shortly after that, it stopped. I attempted to restart and it just failed.\u00a0 Usually when it fails it says something is running on port 80 and thats why you have to kill httpd. well this time i ran ps aux |more and looked for any stuck apache instances. there were none. so i looked at the error_log in &#8220;\/etc\/httpd\/logs\/&#8221;\u00a0 and the following was showing up.<\/p>\n<blockquote><p>[Sun Mar 13 11:10:27 2011] [notice] suEXEC mechanism enabled (wrapper: \/usr\/sbin\/suexec)<br \/>\n[Sun Mar 13 11:10:27 2011] [error] (28)No space left on device: Cannot create SSLMutex<\/p><\/blockquote>\n<p>I searched around for an answer and found the following line which cleans up the smephores.<\/p>\n<blockquote><p><code>ipcs -s | grep apache | perl -e 'while (&lt;STDIN&gt;) { @a=split(\/\\s+\/); print `ipcrm sem $a[1]`}'<\/code><\/p><\/blockquote>\n<p>I&#8217;m not sure what exactly happened, but im guessing its a problem with one of the websites i host. I will need to look into this further. maybe its a parameter of the PHP\u00a0 module. time will tell.<\/p>\n<p>For info for my readers, i will say that i am Running <a title=\"http:\/\/centos.org\/\" href=\"http:\/\/centos.org\/\" target=\"_blank\">Centos 5.5<\/a> 64bit. I am using <a title=\"http:\/\/www.virtualmin.com\/\" href=\"http:\/\/www.virtualmin.com\/\" target=\"_blank\">Virtualmin<\/a> for the hosting panel and we have around 10 websites on the server currently. none of the websites are a heavy load at the moment. I will be implementing monit over the coming weeks so I don&#8217;t have to touch it. but i really need to find out why this is occurring.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the last year or so i have had to restart my Apache Webserver due to a memory leak (this is my theory so far) The behavior shows up as some or all of the web servers going unresponsive and i have to run a script i created to kill the httpd processes and restart &hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/213"}],"collection":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213"}],"version-history":[{"count":3,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}