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.

Server Load Cron User

Discussion in 'General Discussion' started by mind-field, Oct 25, 2003.

  1. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Here is an odd issue. I ran a script as root (cron script) and the server load only goes to 8 to complete the entire script running. I then do the exact same thing as a user (both root and user in SSH) and the load shoots to 29!

    I am confused, please ANY advice will be welcomed!

    Thanks and God Bless!

    David Garza
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    This can happen for a number of reasons...load on the machine, whatever is in the script, etc. If this is an issue, you should write a load watching sub routine into your script.
     
  3. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I have ran a test. And the load was at 0 or 0.12 (something like that) when I ran root cron.

    Load went no higher then 8

    I waited and ran the cron at user with load at 0 or 0.12 (something like that) and it shot up to 29.

    The script wasn't even half way through for the user when it crept it's way up there, but then root finished and it never went over 8.

    This is very baffaling. It is a mailing list script.

    Any and all help is welcomed!

    Thanks and God Bless!

    David Garza
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Mailing list script is the key here. Most if not all mailing list scripts that are written are resource intense. It's probably hitting MySQL & Exim fairly hard. If you want to keep the load responsible, make the script sleep for a couple of seconds between sending mail and be sure that you use a fast set of DNS servers to do address lookups.

    Having a decent system, dual proc, lots of ram & scsi helps a lot as well.
     
  5. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    The thing is, is not the server intensity, because it has been proven it doesn't use too much. But, the fact is it loads the server when sending from a USER account.

    Any ideas why it does that?

    Thanks and God Bless!

    David Garza
     
  6. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    No idea....you can't troubleshoot issue like this over a forum. I was simply providing some general insight. You should tweak your box, check your script....maybe the script & your box aren't as good as you think they are.
     
  7. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I appreciate your assitance. I have tweaked the box as much as my knowledge allows me to. This issue has me baffled though.

    If anyone else has some advice, I am all ears.

    Thanks and God Bless!

    David Garza
     
  8. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Anyone have any ideas?

    Thanks and God Bless!

    David Garza
     
  9. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Whats the script? I'm intrestesd in it...I'm loooking for a mailing list scripts and can't find any good ones...

    Thanks,
    Michael
     
  10. mind-field

    mind-field Active Member

    Joined:
    Sep 28, 2002
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I am using ARP3. If you wish, email me at david @ ccfhosting.com, and I can give you more information about it.

    Thanks and God Bless!

    David Garza
     
Loading...

Share This Page