WordPress.org

Ready to get started?Download WordPress

Forums

High CPU Usage (7 posts)

  1. crazlunatic
    Member
    Posted 6 years ago #

    Every host I go with, they always say my CPU usage is too high. I'll tell you a bit about my site, please help me fix the problem:

    Plugins:
    Adsense Manager
    Akismet
    Cforms II
    Cystat
    Feedburner FeedSmith
    Full Text Feed
    Google Analyticor
    Google XML Sitemaps
    Gregarious
    gunnART Alphaindex
    HowtoGeek - Spam Filter
    JAW Popular Posts Widget
    Official Comments
    Optimal Title
    Popularity Contest
    Subscribe to Comments
    Text Link Ads
    Wp-pagenavi
    Wp Super Cache

    I need most of these plugins so I can't really disable them =(. I get about 5400+ pageviews daily. The site is http://vistarewired.com if that helps.

    Do I need to go on a semi-ded?

    Thanks for your help.

  2. cstina
    Member
    Posted 6 years ago #

    Hi,

    It's probably wp-cron.php.

    If that file is running on a schedule, too often, a host will "freak out" because it can really smack their CPU usage, hard.

    You can disable wp-cron.php and set up a cron job for it, so you can moderate how often that file calls the server.

    If you use Cpanel, just go into Cron Jobs and enter the Command line to point to wp-cron.php, then tell the server (via the Cron Job Options) how often to call the server.

    Some people have had wp-cron.php calling the server every 15 seconds, WITHOUT REALIZING it was even happening... until their Host said "Hey, CPU is too high."

    Anyway, I have mine set to run once a day (in wee hours of morning/US time).

    I personally don't know of any other file that hits CPU as bad as wp-cron.

  3. thelocomono
    Member
    Posted 6 years ago #

    What do I enter in the command field that would point to wp-cron.php?

  4. crazlunatic
    Member
    Posted 6 years ago #

    What exactly does wp-cron.php do? And I have the same question as thelocomon. Is this file necessary?

  5. spiff06
    Member
    Posted 6 years ago #

    I've just been bitten by the same issue. My host shut off a wordpress folder because the CPU usage was hogging up the server. I had 16 active PHP processes, all apparently busy with index.php.

    Some threads point to shutting out the spawn_cron() call and replacing it with a regular system cron job (see here).

    Does anyone know for sure what is causing the CPU load (loop, timeout, resource access, crons spawning on top of one another)?

  6. 7milesdown
    Member
    Posted 5 years ago #

    how do we find out if wp-cron is in fact affecting CPU usage?

  7. moshu
    Member
    Posted 5 years ago #

    I understand your eagerness to find an answer... but posting on every 4-5-6 months old, related topic the same isuee - is not helpful.

Topic Closed

This topic has been closed to new replies.

About this Topic