Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on Problem with crontab - overload my server in the VPS & Dedicated forum
Everyday, around 1-2 am cst, my server goes down for 30mins - 1 hour. It seems that it was running some pretty heavy cronjob. I'm ...

  1. #1
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71

    Problem with crontab - overload my server

    Everyday, around 1-2 am cst, my server goes down for 30mins - 1 hour. It seems that it was running some pretty heavy cronjob. I'm not really familiar with it, but here is the list of crons:

    Code:
    14 4 * * * /scripts/upcp
    0 1 * * * /scripts/cpbackup
    */15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    27 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
    0 9 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/l                ocal/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    Is there anything that is not needed and can be remove from the list?

  2. #2
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    All of those Crons are used by cPanel to run upgrades...

    You could disable automatic upgrading from WHM and then manually run them, say once per week or so.
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  3. #3
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71
    Thanks Daniel,

    I went to WHM->Server Configuration->Update Config and set all to manual. I wonder why Cpanel does not have an option to set the desired time for automatic update.

  4. #4
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Not sure...

    You could manually edit the crontab to change the time I am sure...

    That is if cPanel doesn't overwrite it during an update!

    Just be sure to watch for bug fixes and any security issues that may be handled in new releases...
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  5. #5
    Jag Veteran EuroNut's Avatar
    Join Date
    Aug 2007
    Location
    UK
    Posts
    529
    Quote Originally Posted by spr View Post
    I wonder why Cpanel does not have an option to set the desired time for automatic update.
    It does!

    Go to WHM, scroll down to cPanel >> Manage Plugins, and enable cronconfig.

    Once that's done, refresh the left (menu) pane of WHM and under the final options box down at the bottom (Plugins) you'll see a new option "Configure cPanel Cron Times".

    In there you have a couple of options you can change the time of .....

    Command:upcp "upcp is the program that updates cPanel. We recommend running this script once a day, it has, by default, been set to a random time between 9pm and 6am local time. You may set this to whatever time you wish, however we recommend setting it to run during off peak hours."

    And

    Command:cpbackup "cpbackup is the program used to run backups on your server. It is defaultly set to run at 1am as this is an off peak time for most servers. We recommend setting this to an off peak time early enough to allow your server to finish backups before entering peak time again. If you have backups disabled then the program will immediatly exit after run."

    EuroNut (The mad Brit)
    If it ain't broke, don't ping it...

  6. #6
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    Hmmm Interesting!

    I wonder how I missed that?!?!
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  7. #7
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    Quote Originally Posted by spr View Post
    Thanks Daniel,

    I went to WHM->Server Configuration->Update Config and set all to manual. I wonder why Cpanel does not have an option to set the desired time for automatic update.
    It does as a plugin.... (edit) opps should have kept reading, Euronut already mentioned it.

  8. #8
    spr
    spr is offline
    Loyal Client
    Join Date
    Jun 2006
    Posts
    71
    Thanks EuroNut,

    Thanks to your help now I set up the cron run time at a better time (around 3 am CST now). We will see how it goes tonight.

    Again, thank you all for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •