Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

crons - slow server - performance issues on one server

Discussion in 'Workarounds and Optimization' started by sahostking, Oct 18, 2014.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    328
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    Usually load is around 0.58 to 1.5

    But for some reason at times it goes up alot and reaches the 40.0

    I'm thinking it's some crontab as it doesn't seem to be a slow query as from what I can see.

    Can someone inform me if there is anything I do not need in the below list or if anything should be adjusted for performance wise. I've pasted a few of our crons below:

    Code:
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
    45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
    0 3 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
    30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    4 3 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    0 7 * * * perl /var/cpanel/rvglobalsoft/rvsitebuilder/rvsBackup.pl 'backup' > /dev/null
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    30 1 * * * /usr/local/bin/rkhunter -c --cronjob --update --rwo
    56 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
    0 4 * * * /usr/sbin/cxs --upgrade --quiet
    0 0 * * 0 rm -rf /usr/local/apache/logs/archive/*.gz
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    0 4 6 * * /usr/local/cpanel/scripts/upcp --cron

    I noticed this cron ran every 4 hours so I changed it to run only in the early hours of the morning and changed it to the below:
    Code:
    0 3 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The following cron jobs are not standard, so you could start by temporarily disabling them to see if it makes a difference:

    Code:
    0 7 * * * perl /var/cpanel/rvglobalsoft/rvsitebuilder/rvsBackup.pl 'backup' > /dev/null
    30 1 * * * /usr/local/bin/rkhunter -c --cronjob --update --rwo
    56 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
    0 4 * * * /usr/sbin/cxs --upgrade --quiet
    0 0 * * 0 rm -rf /usr/local/apache/logs/archive/*.gz
    Note that some of them might be required for your third-party applications to function properly. Also, please see this thread:

    Troubleshooting High Loads On Linux Systems

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice