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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with root crons and maybe more issues

Discussion in 'General Discussion' started by lonsg, May 31, 2017.

  1. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    so I've moved to a new hosting provider and I'm seeing a lot of crons that I didn't have on my old one. On CENTOS 6.9 x86_64 kvm – server cPanel & WHM 64.0 (build 24)
    There are certain times where my server just locks up and cant access anything because cpu is hitting 20 out of 2 cpus and memory nearing 60% needing to use swap. Checking top command it is usually php-cgi and mysqld doing most of the damage and every now and again rpm.

    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
    39 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    10 0 * * * /usr/local/cpanel/scripts/upcp --cron
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    0 2 * * * /usr/local/cpanel/bin/backup
    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
    30 */4 * * * /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
    */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
    2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
    But my question is which ones are essential here. I don't require backups of my files I don't want any updates I don't use server email. I just have a wordpress website installed. which do I remove. Sorry but I really am a n00b :)

    Forgot the add funny thing is whenever I turn on cloudflare I'm under attack mode (ddos protection) cpu usage usually drops down quite rapidly. So I really don't know if it has anything to do with crons or that someone is just curling my site or ddos. Im just confused. but still pretty sure there must be a few crons there that is not needed.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Those are standard cron jobs included with cPanel. I don't recommend removing any of them. For instance, if you wanted to disable backups, you'd do so via "WHM >> Backup Configuration" and the backup script running as part of the cron job would detect that backups are disabled and not generate them (same with cPanel updates, you'd use "WHM >> Update Preferences"). The following thread is useful if you'd like to troubleshoot the server load:

    Troubleshooting high server loads on Linux servers

    Thank you.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,767
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    All of them are essential, IMHO.
    It only takes one out of date wordpress site or even just an addon installed on it, to cause lots of issues like you describe having.
     
    lonsg likes this.
  4. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    I already removed the eximstats ones as I disabled eximstats from whm I don't need it since it is for emails. I have also stopped updates from whm but don't know which crons to remove to stop it completely and lastly I don't need backups so I see a couple there but which are safe to remove is all I am asking. I previously didn't have this much crons and everything was running perfectly fine.
     
  5. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    I don't have many addons just total cache and yoast seo. Really I just want to understand what each of these crons do so I can remove ones that I feel like I don't need. Thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't suspect any of the cron jobs are leading to load issues based on the information you have provided. Cron jobs don't necessarily indicate whether a specific feature is enabled. For instance, the existence of the "upcp" cron job doesn't mean backups are enabled, as there's functionality built within the script that determines if cPanel should automatically update based on the update preferences you have configured.

    Thank you.
     
  7. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    I have set from whm to never update. However my question is what are these and all cant be vital for the system to run since I only had 4 in my previous setup and everything was working fine.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's likely the previous server was missing some important cron jobs. The cron jobs listed in your earlier response are standard cron jobs included by default. The cron jobs are not required for your services to run, but they are vital if you want to ensure all cPanel & WHM features work smoothly.

    Thank you.
     
  9. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    I have ditched wordpress and just converted my theme to just php funny enough usage has dropped to 0.02 cpu with even more visitors. You were right @Infopro
     
    Infopro likes this.
  10. lonsg

    lonsg Member

    Joined:
    May 31, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    yup thats what I mean I don't require updates so it is not vital I don't mind not having the latest update or security patch.

    so please someone tell me just what do I do if I don't want cpanel updates or backups or mail can I remove the following?

    39 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    10 0 * * * /usr/local/cpanel/scripts/upcp --cron
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    0 2 * * * /usr/local/cpanel/bin/backup
    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

    This one I already removed and keeps coming back even though I have eximstats disabled from whm.
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
     
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,767
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes you do. I hate to disagree with you, but you do. Always. It's the only way you'll keep your site, your server and all your work, safe.

    Short answer, probably.
    More: why concern yourself with these, ignore them and let them do what they do.

    Back up the file, edit file to remove them and wait to see what breaks. If you need to know if you need them or not that's one way to find out. ;)
     
Loading...

Share This Page