{"id":116893,"date":"2014-03-10T12:37:53","date_gmt":"2014-03-10T19:37:53","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/apache2-process-not-releasing\/"},"modified":"2014-04-21T07:56:13","modified_gmt":"2014-04-21T14:56:13","slug":"apache2-process-not-releasing","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/","title":{"rendered":"Apache2 process not releasing"},"content":{"rendered":"<p>So I am working with a large Park District as a client. There site was launched a couple months ago and they say that recently they have seen there server crash several times. They looked into the cause of this problem and are pointing fingers at tribes event calendar.  We cannot get direct access to their servers but he did give me a copy of the files and database that they are using. They are quite large. I have loaded them onto a development server: http:\/\/ppd.webdesign309.com. I haven&#8217;t been able to create the same errors that they had yet on our server. I am going to copy and paste the direct email he sent to me. If anyone has any ideas please let me know. I am not a server admin so I can only speak to the code side of things. Thanks!<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\/\/\/\/\/\/\/EMAIL HE SENT TO ME\/\/\/\/\/\/\/<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\nI am following up on the continued CPU and Memory usage problem that our new site has been having.  I have been able to find out which plugin(s) has been causing the problem and we currently have the offending plugin(s) disabled until we can reach resolution.<\/p>\n<p>What we were seeing when the website was running is that it would start multiple instances of apache2 (normal for websites to do this), but it wasn&#8217;t releasing the processes when a user would leave the website and the memory and cpu usage would keep snowballing until the server locked up.<\/p>\n<p>Here is a screenshot of top from our server while the problem is happening:<\/p>\n<p>[cid:e9c5be43-04bb-2c0b-183e-59c306ea8c2b]<\/p>\n<p>There were dozens of these processes spawned, and you can see how long they were open, the amount of memory they were consuming and the amount of CPU they were requesting.  I looked at just one of these processes and found that 2 plugins where causing a loop that did not allow the apache2 process to die properly.  The plugins that were causing the problem are:<\/p>\n<p>The Events Calendar<br \/>\n&amp;<br \/>\nEvents Calendar Pro<\/p>\n<p>Once we disabled those plugins, we now have a normal system that releases the apache2 processes, and our top now looks like this:<\/p>\n<p>[cid:746a2cb8-7450-af69-c043-6947fb46efdf]<\/p>\n<p>The website has never been faster since we disabled the plugins.  I did watch the process while it was causing the problem and I have attached a text file with the loop the plugin had created that caused the processes to race out of control.<\/p>\n<p>\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<br \/>\n\/\/\/\/\/END EMAIL HE SENT TO ME\/\/\/\/\/<br \/>\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/p>\n<p>Here are the images he attached as proof. http:\/\/ppd.webdesign309.com\/screenshot74.png<br \/>\nhttp:\/\/ppd.webdesign309.com\/screenshot73.png<br \/>\nhttp:\/\/ppd.webdesign309.com\/runawayplugins.txt<\/p>\n<p>I will take any opinions on the matter and will try to provide as much access as possible.<\/p>\n","protected":false},"template":"","class_list":["post-116893","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache2 process not releasing -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache2 process not releasing -\" \/>\n<meta property=\"og:description\" content=\"So I am working with a large Park District as a client. There site was launched a couple months ago and they say that recently they have seen there server crash several times. They looked into the cause of this problem and are pointing fingers at tribes event calendar. We cannot get direct access to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-21T14:56:13+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/\",\"name\":\"Apache2 process not releasing -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-03-10T19:37:53+00:00\",\"dateModified\":\"2014-04-21T14:56:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Apache2 process not releasing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache2 process not releasing -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/","og_locale":"en_US","og_type":"article","og_title":"Apache2 process not releasing -","og_description":"So I am working with a large Park District as a client. There site was launched a couple months ago and they say that recently they have seen there server crash several times. They looked into the cause of this problem and are pointing fingers at tribes event calendar. We cannot get direct access to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/","article_modified_time":"2014-04-21T14:56:13+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/","name":"Apache2 process not releasing -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-03-10T19:37:53+00:00","dateModified":"2014-04-21T14:56:13+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/apache2-process-not-releasing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Apache2 process not releasing"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/116893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/116893\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=116893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}