WordPress.org

Ready to get started?Download WordPress

Forums

High WordPress CPU Usage on Shared Host (4 posts)

  1. cnxtrans
    Member
    Posted 2 years ago #

    I have a blog http://www.cnx-software.com and my hosting provider recently complained about my blog CPU usage.

    cnxtrans 19393 3.2 0.2 91528 10244 ? R 20:34 0:00 | \_ /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    cnxtrans 19394 0.2 0.0 3164 1284 ? D 20:34 0:00 | \_ /opt/suphp/sbin/suphp
    cnxtrans 19267 2.9 0.7 109184 28788 ? R 20:34 0:01 | \_ /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    cnxtrans 19254 2.8 0.7 109164 29248 ? R 20:34 0:01 | \_ /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    cnxtrans 19326 0.0 0.0 3164 1288 ? D 20:34 0:00 | \_ /opt/suphp/sbin/suphp
    cnxtrans 19250 5.6 1.0 107844 41304 ? R 20:34 0:02 | \_ /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    cnxtrans 19388 1.0 0.0 20576 2472 ? R 20:34 0:00 | \_ /usr/bin/php

    I had already installed W3 total cache a few months and I recently enabled CloudFlare. The CPU usage complains happened right at this time, but I doubt it's related. I also went to phpmyadmin to run a database optimization after the first complain, but it did not help.

    Here are the plugins I use for the blog:

    Advertising Manager
    AVH First Defense Against Spam
    Digg Digg
    Google Analytics for WordPress
    Invisible Captcha
    Maintenance Mode
    Smart Youtube
    Static Random Posts Widget
    TSL iframe unfilter
    TweetMeme Retweet Button
    W3 Total Cache
    WordPress Mobile Pack
    WP Frame Breaker
    WP HTTP Compression
    WP Nofollow Post

    I'm running out of ideas to improve CPU usage and would appreciate if someone would have some other ideas.

  2. cnxtrans
    Member
    Posted 2 years ago #

    I've got the same issue again.

    27451 cnxtrans 18 0 100m 21m 6496 R 73.9 0.5 0:00.65 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    27420 cnxtrans 18 0 106m 28m 6780 D 34.1 0.7 0:01.14 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/wp-cron.php
    27402 cnxtrans 22 0 107m 29m 7184 D 9.1 0.8 0:01.21 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    27402 cnxtrans 19 0 111m 33m 7260 R 28.1 0.9 0:02.44 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    27473 cnxtrans 15 0 95800 15m 6580 S 8.2 0.4 0:00.36 /usr/bin/php /home/cnxtrans/public_html/forum/viewtopic.php
    27488 cnxtrans 18 0 91940 10m 5772 R 4.6 0.3 0:00.14 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    27491 cnxtrans 18 0 104m 25m 6660 D 30.4 0.7 0:00.92 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php
    27488 cnxtrans 18 0 101m 22m 6576 R 19.5 0.6 0:00.73 /usr/bin/php /home/cnxtrans/public_html/cnxsoft/index.php

    This time the log is more understandable to me, as I can see index.php using 73% CPU for 0.65 second.

    However, I still don't really know how to improve that.
    Since last time, I've just installed another translator plugin: Ben's Translator, a clone of Global Translator.

    Cloudflare reports that the blog gets 5000 to 7000 page views a day, yesterday It reports over 13,000 page views. Would that be a problem on a shared hosting ?

  3. dheeraj.singh
    Member
    Posted 2 years ago #

    Evei I am facing the same issue. index.php for all my sites is taking up massive CPU.

    Any Solutions?

  4. cnxtrans
    Member
    Posted 2 years ago #

    I installed "W3 total cache", but it was not working properly (pgcache directory empty), I disabled "WP HTTP Compression" plugin to make the plugin work currently. Now all (non-logged-in) users retrieve the cached page (HTML) instead of using PHP.

    For now, it seems to be OK. My provider has not blocked me even when I had a traffic surge.

Topic Closed

This topic has been closed to new replies.

About this Topic