ISP Config CRON using 100% CPU

Discussion in 'Installation/Configuration' started by nickamis, Sep 6, 2019.

  1. nickamis

    nickamis New Member

    Hi,
    I have an issue every hour where the ISP Config CRON job using up to 100% CPU. It's the 'https' process that uses the CPU.
    ISPConfig logging is at debug level but there's nothing reported there. I thought it might relate to LetsEncrypt but there's no activity recorded in that log file either.
    My server is current hosting around 40 Wordpress sites. Wordpress cron is disabled on every site and centrally managed by a manual cron job to hit each site just one a minute.
    Here's an extract from pstree.
    init-+-acpid
    |-apache2---12*[apache2]
    |-atd
    |-cron-+-cron---sh---cron.sh---php---sh---apt-get-+-copy
    | | |-gpgv
    | | |-6*[http]
    | | `-https

    Any ideas what might be going on?

    Thanks, Nick
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The ps mentions apt-get, so I guess its the Linux package update check. How long do you have the 100% CPU usage? How many cores does your server have? 100%cpu on one core should not cause any issues on a modern server.
     
  3. nickamis

    nickamis New Member

    Hi Tim,
    It typically stays at 100% for around 30 seconds with https as the top process and then apt-get is the top process for another 20 seconds. I'm running a digital ocean droplet with ubuntu, 2 CPUs and 4Gb RAM.
    Regards, Nick
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then that's the job which tests if there are any Ubuntu updates available. I would leave that as it is, or do you see any slowdown in your sites?
     
  5. nickamis

    nickamis New Member

    Yes, sites slow down noticeably. Server load increases to between 3-15.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You can delete the file /usr/local/ispconfig/server/lib/classes/cron.d/100-monitor_system_update.inc.php

    But it will reappear after an update and you will not be able to see the update state of your server anymore in ISPConfig.
     
  7. nickamis

    nickamis New Member

    I'll give it a go. Is there a list of descriptions for each cron job within ISPconfig? There may be others that are not required that I can disable.
     
  8. nickamis

    nickamis New Member

    Would it be better to edit /lib/classes/cron.d instead and remove the entry from the list rather than delete the php file?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    no

    This is a directory which contains the cron files that shall get executed, there is no list, the files are read in dynamically.
     
  10. nickamis

    nickamis New Member

    Well, initial results are looking very good. There was no increased CPU on the hour (as is usually the case). I keep a close eye on things.

    Thanks Till
     

Share This Page