1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

wp-cron problem!

Discussion in 'Blogging' started by mastaz314, Oct 26, 2009.

  1. mastaz314

    mastaz314 Registered Member

    Joined:
    Jan 20, 2009
    Messages:
    57
    Likes Received:
    65
    Hi

    I have a big problem. Hostgator is block wp-cron on my 2 sites.

    Before that, they sent me emails:

    I apologize, but I was forced to suspend the script "/home/mastaz/public_html/xxx.net/wp-cron.php" as it was causing a high load on the server, and due to the nature of the problem, I forced to take immediate action for the health of the server. This particular script is used for certain wordpress tasks, such as trackbacks and link checks. If you have a large volume of articles, we recommend that you disable this, or disable this on any particularly popular popular articles that you may have. Please let us know how you would like to proceed.

    Running Proceses:
    mastaz 26642 19.3 0.2 63172 37308 ? R 14:00 0:17 /usr/bin/php /home/mastaz/public_html/xxx/wp-cron.php
    mastaz 26821 21.0 0.2 62544 36768 ? S 14:00 0:17 /usr/bin/php /home/mastaz/public_html/xxx/wp-cron.php
    mastaz 27556 18.3 0.3 63552 37696 ? R 14:00 0:09 /usr/bin/php /home/mastaz/public_html/xxx/wp-cron.php
    mastaz 28297 20.7 0.2 62108 36316 ? S 14:01 0:03 /usr/bin/php /home/mastaz/public_html/xxx.net/wp-cron.php
    mastaz 28484 0.7 0.1 41012 13820 ? S 14:01 0:00 /usr/bin/php /home/mastaz/public_html/xxx.com/index.php
    mastaz 28487 2.8 0.2 52244 25864 ? S 14:01 0:00 /usr/bin/php /home/mastaz/public_html/xxx.com/wp-admin/admin.php
    mastaz 28493 3.7 0.1 41012 14300 ? S 14:01 0:00 /usr/bin/php /home/mastaz/public_html/xxx.com/index.php
    mastaz 28617 24.5 0.2 53220 27092 ? S 14:01 0:00 /usr/bin/php /home/mastaz/public_html/xxx.com/index.php


    MySQL Processes:
    | 3392711 | mastaz_cro | localhost | mastaz_xxx | Query | 0 | Opening tables | SELECT id FROM wp_wpvt_added_videos WHERE video_id = 'qUHpEhmz-2E' |
    | 3392767 | mastaz_cro | localhost | mastaz_xx | Query | 0 | Opening tables | SELECT id FROM wp_wpvt_added_videos WHERE video_id = 'NOguhW2Wlf4' |
    | 3392943 | mastaz_cro | localhost | mastaz_xxx | Sleep | 2 | | |
    | 3393057 | mastaz_cro | localhost | mastaz_xxx | Query | 0 | Opening tables | SELECT id FROM wp_wpvt_added_videos WHERE video_id = 'DfvoSEhpyWM' |
    | 3393087 | mastaz_cro | localhost | mastaz_xxx | Query | 7 | Sending data | SELECT count(DISTINCT ip) AS visitors
    | 3393107 | mastaz_cro | localhost | mastaz_xxx | Sleep | 2 | | |

    And I not fixed this, then hostgator is block wp-cron on my 2 sites.

    Hostgator email:
    At the time that I preformed the suspension yes, and then only the wp-cron.php script (so the website itself is still running, however, the cron script is disabled). Please let me know if you have further questions, or if we can point you towards more information.

    -------------------------------------------------------------------
    I have 15 active websites on this hosting, about 3 auto blog, using wp-omatic and wp-videotube. I have 2 sites with 2000 - 3000 visitors daily. 1 site with 1000 visitors daily, and a lot of small sites with 200 - 400 visitors daily.

    Can you please help me? What is problem, auto blog or what.....hosting....

    How I can fix that?

    Thanks, mastaz314
     
  2. kaizer

    kaizer Junior Member

    Joined:
    Dec 8, 2006
    Messages:
    114
    Likes Received:
    12
    Similar problem,shit.
    I think we need cron addon,wich available in the autoblogged customer forum.
    Anyone have access to it?
     
  3. urpoe

    urpoe Newbie

    Joined:
    Aug 19, 2009
    Messages:
    19
    Likes Received:
    5
    I had same problem few days ago. I think it was my wp duplicate post plugin causing it, but Im not sure yet. My host suspended my account right away. They sent something like this :D
    Code:
     Hello,
    We cannot unsuspend the account as that will risk crashing the server again. Your account already crashed our server once.
    I'll try to explore whats with the wp-cron... If i find something I'll post it here.
     
  4. fholmes

    fholmes Newbie

    Joined:
    Dec 22, 2009
    Messages:
    8
    Likes Received:
    1
    wp-cron is a PITA. It can be tamed though. Unfortunately depending on the plugins you have installed on your blog this file can be more resource intensive than others. The best thing to do is to disable it in your wp-config.php file with this line:

    PHP:
    define('DISABLE_WP_CRON'true);
    Then you can setup a cron job in the crontab file. This is different on each different webhost. If you have cpanel you can do this in cpanel.

    I would recommend you run it 4 times per day. Depends on how many things you have going on in your blog. If you have multiple blogs on one account then I would recommend you stagger each wp-cron.php run time. If you have a ton of blogs then reduce the number of times it is run per day down to two at the most.

    Clearing out all of those SPAM comments and doing regular database maintenance can also help reduce the amount of CPU cycles your wp-cron.php uses.
     
    • Thanks Thanks x 1