{"id":1174793,"date":"2016-10-10T23:33:33","date_gmt":"2016-10-11T06:33:33","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/"},"modified":"2016-10-10T23:33:33","modified_gmt":"2016-10-11T06:33:33","slug":"excessive-cpu-with-recurring-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/","title":{"rendered":"Excessive CPU with Recurring Events"},"content":{"rendered":"<p>I&#8217;ve got a client using The Events Calendar Pro with a significant number of recurring events (typically, 5-10+ events\/day Monday to Friday, plus a few on the weekends). The schedule has been set up through June of 2017, resulting in about 2000 posts. <\/p>\n<p>I started noticing timeout errors just after the site went live &#8211; usually when I was doing something in the Events Calendar. But I didn&#8217;t pinpoint it specifically to TEC at that point &#8211; I was just adding lots of events so that&#8217;s the screen I was usually on. After asking my tech support about the frequent timeouts, they checked the logs and found some issues. Part of their Email response is below:<\/p>\n<blockquote><p>it IS clear that at least a small part of the performance problem on the existing server is the sayward site itself.<\/p>\n<p>    [2016-10-08 11:20:07]: longrun: sayward\/php5  30.51 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/age-friendly-program-drop-in\/2016-10-11\/)<\/p>\n<p>    [2016-10-08 11:25:07]: longrun: sayward\/php5  30.38 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/thanksgiving-day-closed\/all\/)<\/p>\n<p>    [2016-10-08 11:29:47]: longrun: sayward\/php5  29.85 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/open-swim-friday-am\/2017-02-17\/)<\/p>\n<p>    [2016-10-08 11:37:27]: longrun: sayward\/php5  30.10 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/age-friendly-dominoes-2\/2016-10-08\/)<\/p>\n<p>    [2016-10-08 12:42:48]: longrun: sayward\/php5  29.47 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/public-swim-friday-pm\/2016-10-07\/)<\/p>\n<p>    [2016-10-08 12:42:59]: longrun: sayward\/php5  29.65 seconds<br \/>\n    (http:\/\/sayward.ca\/event\/age-friendly-dominoes-2\/all\/)<\/p>\n<p>Every one of those hits took approximately 30 cpu seconds to render. That<br \/>\nis NOT right.<\/p>\n<p>and as far as I can tell, that appears to be repeatable.<\/p>\n<p>ahh, it is actually failing&#8230;<\/p>\n<p>                                                 &lt;br \/&gt;<br \/>\n&lt;b&gt;Fatal error&lt;\/b&gt;:  Maximum execution time of 30 seconds exceeded in<br \/>\n&lt;b&gt;\/raid\/home\/sayward\/sayward\/wp-includes\/taxonomy.php&lt;\/b&gt; on line<br \/>\n&lt;b&gt;1532&lt;\/b&gt;&lt;br \/&gt;<\/p>\n<p>(That 30 cpu second limit would be controlled by your php.ini<br \/>\nfile, but I highly doubt increasing it would help)<\/p>\n<p>hhmm, tracing one of those processes&#8230; it appears to be stuck in a<br \/>\nloop&#8230; at least one mysql query (a complex one) got run 26 times before<br \/>\nthe script ran out of CPU time.<\/p>\n<p>SELECT   wpvos_posts.*<br \/>\nFROM wpvos_posts<br \/>\nINNER JOIN wpvos_postmeta ON ( wpvos_posts.ID = wpvos_postmeta.post_id )<br \/>\nWHERE 1=1<br \/>\n   AND ( \\n  wpvos_postmeta.meta_key = &#8216;_EventStartDate&#8217;\\n)<br \/>\n   AND wpvos_posts.post_type = &#8216;tribe_events&#8217;<br \/>\n   AND ((wpvos_posts.post_status = &#8216;publish&#8217;))<br \/>\n   GROUP BY wpvos_posts.ID<br \/>\n   ORDER BY wpvos_posts.post_date DESC<\/p>\n<p>Obviously, the common thread to the long running processes appears to be a<br \/>\ntrailing date parameter?<\/p><\/blockquote>\n<p>I did find a couple of posts about excessive CPU issues with recurring events in the forums, but the latest, from June 2016, appears to be a different issue than this, as it was creating extra posts. That is definitely not the case here. <\/p>\n<p>The client has a facility that runs recurring events from September to June. That was the key reason we chose TEC. Making events only recur for a month or so at a time is really not an option &#8211; this needs to be as hands-off as possible. <\/p>\n<p>Thanks in advance for your reply.<\/p>\n<p>Terry (Village webmaster)<\/p>\n","protected":false},"template":"","class_list":["post-1174793","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>Excessive CPU with Recurring Events -<\/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\/excessive-cpu-with-recurring-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Excessive CPU with Recurring Events -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve got a client using The Events Calendar Pro with a significant number of recurring events (typically, 5-10+ events\/day Monday to Friday, plus a few on the weekends). The schedule has been set up through June of 2017, resulting in about 2000 posts. I started noticing timeout errors just after the site went live &#8211; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/\" \/>\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=\"3 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\/excessive-cpu-with-recurring-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/\",\"name\":\"Excessive CPU with Recurring Events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-11T06:33:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/#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\":\"Excessive CPU with Recurring Events\"}]},{\"@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":"Excessive CPU with Recurring Events -","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\/excessive-cpu-with-recurring-events\/","og_locale":"en_US","og_type":"article","og_title":"Excessive CPU with Recurring Events -","og_description":"I&#8217;ve got a client using The Events Calendar Pro with a significant number of recurring events (typically, 5-10+ events\/day Monday to Friday, plus a few on the weekends). The schedule has been set up through June of 2017, resulting in about 2000 posts. I started noticing timeout errors just after the site went live &#8211; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/","name":"Excessive CPU with Recurring Events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-11T06:33:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/excessive-cpu-with-recurring-events\/#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":"Excessive CPU with Recurring Events"}]},{"@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\/1174793","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\/1174793\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1174793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}