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!

Cron Jobs

Discussion in 'General Discussion' started by tech6, Oct 10, 2010.

  1. tech6

    tech6 Registered

    Oct 10, 2010
    Likes Received:
    Trophy Points:
    I have two Cron Jobs running on two of my blogs. I received a message from my hosting company that they were using too much space or maybe it was bandwidth. They also threatened to up my space or delete the blogs. Is there a way to decrease the number of times the jobs run. Or is there some way to delete the updates that have already been obtained?

    One of the sites is a games site and the other is a movie trailer site that updates using a cron script.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello tech6,

    You cannot change how they've already ran in the past to reduce the CPU or memory usage they have taken, and it's unlikely a cron is taking up space unless it's writing files or logging, so it's likely CPU or memory that is the issue. Bandwidth can't be an issue either if they are running locally as that isn't going to utilize bandwidth.

    For decreasing how frequently they run, you can check how often they run in cPanel > Cron Jobs > Advanced area. If you post here the time intervals for how often they run, we could tell you how to change the frequency.

    I can note that if it is something like the following:

    */5 * * * *
    This would mean every 5 minutes where it's like this:

    */5 = every 5 minutes (minute of the hour interval)
    * = every hour (hour interval)
    * = every day of the month (day of the month interval)
    * = every month (month interval)
    * = every day (day of the week interval)

    If you wanted to change it to every 30 minutes, you could do:

    */30 * * * *
    Or, you could have it run once an hour:

    0 * * * *
    The 0 here would mean run the cron at the 0 minute of the hour every hour.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. vichardy

    vichardy Member

    Apr 21, 2010
    Likes Received:
    Trophy Points:
    I can't imagine a cronjob using up server space. Do you mean resources? And did your host specifically say it was the cron jobs causing the issue?

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