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.

Cron Jobs

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

  1. tech6

    tech6 Registered

    Joined:
    Oct 10, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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:

    Code:
    */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:

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

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

    Thanks.
     
  3. vichardy

    vichardy Member

    Joined:
    Apr 21, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page