{"id":108,"date":"2004-10-28T23:59:00","date_gmt":"2004-10-28T23:59:00","guid":{"rendered":"http:\/\/www.shiromi.com\/cgi-bin\/blosxom.cgi\/website\/200410290859.html"},"modified":"2008-12-21T22:29:57","modified_gmt":"2008-12-21T13:29:57","slug":"blosxom-plugin-high-cpu-usage","status":"publish","type":"post","link":"https:\/\/shiromi.com\/blog\/2004\/10\/28\/blosxom-plugin-high-cpu-usage\/","title":{"rendered":"Blosxom Plugin High CPU Usage"},"content":{"rendered":"<p>I found out about a major flaw in the <a href=\"http:\/\/molelog.molehill.org\/blox\/Computers\/Internet\/Web\/Blosxom\/Calendar\/\">calendar <\/a> plugin for blosxom. after my website was suspended again.  I started to wonder if there could really be a problem, since that happened with my previous provider too so I called up <a href=\"http:\/\/www.bluehost.com\/track\/shiromic\/CODE2\">Bluehost<\/a>&#8216;s support team and asked about the problem.  First of all, I have to say thanks to their support: contrary to my previous provider, they had a Call Center, which made things much smoother.  Additionally, they were able to provide accurate information about the name of the process, the time, the amount of CPU usage, etc.<\/p>\n<p>Thanks to those details and after a quick search in Google, I found an interesting <a href=\"http:\/\/groups.yahoo.com\/group\/blosxom\/message\/5787\">page<\/a>, where the problem was mentioned.  Basically, if you input a bad month in the URL, the plugin will get into an infinite loop, which may use up all resources on the server.<\/p>\n<p>The fix proposed in the page is quite simple: just run a test on the month, and if it&#8217;s greater than 12 or lower than 1, just force its value to 12 (for example).  Assuming there may be other problems, I&#8217;ve just got rid of this plugin and replaced it by the <a href=\"http:\/\/joe.sl4g.com\/projects\/blosxom\/flatarchives\">flat archives<\/a> plugin, visible on the right hand side of this page.<\/p>\n<p>Damn it!  Maybe that stupid provider was right about the high CPU usage after all, but I still feel no regret having switched to <a href=\"http:\/\/www.bluehost.com\/track\/shiromic\/CODE2\">Bluehost<\/a>, for I know that they are more reliable and at least, they can speak proper English!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found out about a major flaw in the calendar plugin for blosxom. after my website was suspended again. I started to wonder if there [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-journal"],"_links":{"self":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":1,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/posts\/108\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shiromi.com\/blog\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}