• As my friend Otto42 suggested, I am posting a new thread here to see if anyone has comments regarding how to resolve CPU overloads.

    I am currently running WP 2.3 using i3Theme v1.5 on th HostICan Tera plan (shared).

    2007 saw zero CPU overloads. 2008 already seen quite a bit of overloads. And the strangest part was nothing was changed so I reinstalled WP and cleaned the database up and started deducting possible issues.

    These are the possible issues I have started working on and noticed a significant improvement to the process.

    Deleted images in the Upload folder that were no longer there because of reinstallation. This resulted in a huge difference. As a result, I am now working on new images with file sizes of 50k or less.

    I also have disabled stats plugins including Tan Tan WordPress reports and Semiologic Google Adsense and this also resulted in a noticable difference. All I had to do was just insert the Google Anaylsis code into the footer and disable the plugin, removed from the plugin folder, cleaned up the mySQL database.

    I am using a number of plugins all except for 2 of them which are 4KB,

    wp-ajax-edit-comments (4KB)

    maxblogpress-stripe-ad (4KB)

    popularity-contest (4KB)

    featured-sites.php (20KB)

    wp-contact-form (4KB)

    akismet (4KB)

    sig2feed.php (6KB)

    google-sitemap-generator (4KB)

    top-commentators-widget (4KB)

    optimal-title (4KB)

    no-self-ping (4KB)

    live-comment-preview (4KB)

    dualfeeds (4KB)

    wp-super-cache (4KB)

    yatcp (4KB)

    sem-dofollow (4KB)

    no-www (4KB)

    feedentryheader (4KB)

    commentluv (4KB)

    srg_clean_archives (4KB)

    all-in-one-seo-pack (4KB)

    oneclick (4KB)

    Two possible issues I am exploring right now is the index files including trackbacks and spiders bots (cron jobs).

    I am considering removing the popularity plugin as well as the live preview since the commenters can edit their own comments after publishing using the ajax edit comment plugin.

    Any suggestions to further optimization of my wordpress structure will be appreciated.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    A server wouldn’t have problem with your account / domain if you didn’t cause one or a plugin caused one.

    HA! That’s a good one. ??

    Web hosting services are rarely good at what they do. The good ones are few and far between.

    If my host complained to me about “CPU Usage”, I’d immediately switch hosts. It’s simply a pretty solid sign of a bad webhost, in my experience. It means that they oversold the box’s capacity. Sure, you can have an out-of-control process or get a DoS attack or something, but if they tell you that the CPU Usage is high without explaining why that is the case, then they most likely don’t know what they’re doing.

    sounds like something was missing in your previous theme – likely causing some 404 requests for missing files (maybe some images were gone? css?) and WordPress was happily generating a page view for the missing files as a 404 page. That amplifies page loads dramatically, as a single page view turns into several (up to dozens?) of simultaneous page generations.

    take a close look at the theme, and make sure nothing’s borked. Safari can tell you, if you look at the Activity panel – missing stuff will be red, IIRC…

    mjulson

    (@mjulson)

    Thanks for the tip. I was missing a small css file on certain pages, I’ve since checked it again and no 404’s are being generated, yet I was able to exceed my cpu allowance by surfing my own site quickly.

    Hostican says that you can’t exceed 25% cpu for more than 60 seconds, but in this case, I added up the cpulogs for the three minutes I was surfing and found that with 227 requests (index.php, images, css, etc.)each averaging 0.109164 seconds for a total use of 24.78022 seconds in the three minutes, that it blew my cpu budget. I doubt that any of these transactions used 25% of a cpu to accomplish.

    Unfortunately, Hostican is pointing at my plugins being the problem.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘CPU Overload’ is closed to new replies.