Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default Question about CPU and client crontabs

    I have a client who is running a perl script every 15 minutes. It eats up 50-70% of the cpu for a moment and then quits. I have PRM from RFX Networks installed, so sometimes it gets killed by PRM.

    What I'm wondering is if I need to prohibit the guy from running this script or not. The loads seem fine and never go above 1.0 on this server. It doesn't run constantly, so where do I draw the line? At what point is it going to affect the other clients?
    Last edited by casey; 08-16-2004 at 06:37 AM.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Do you know what the script is doing?

    Personally, we don't allow user crontabs, they have to ask first and justify them to us. If we run them, then my rule of thumb is whether it affects me when I'm on the server at the shell. If things slow down for me, the job has to go. You also have to bear in mind how many more accounts you want to put on the server and whether the load added by the script could affect that.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    From what I can tell it's updating news items on his website. The thing is, he's running it on my server but displaying the information on a separate server.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Hmmm, so probably taking advantage of the fact that you allow CRON jobs, but the other server doesn't? Not sure about the ethics of that
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Quote Originally Posted by casey
    From what I can tell it's updating news items on his website. The thing is, he's running it on my server but displaying the information on a separate server.
    I wouldn't allow that on my server.

    They're using you to do what the others won't allow.

    It does all depend on how much you want to put on your server.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    He is using my cheapest plan...and paying monthly...

  7. #7
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Reminds me of a client I had last year. He signed up for my 10M package, used almost no space, no bandwidth, yet my server was crashing after he signed up. Turned out, all he was doing was using a cron job 4 times/day to get that Yahoo/dmoz domain list. The script was using bandwidth as root.

    The script even had a setting to limit how much power to use and he had it set to a figure that is specified for a full server.

    I'd give the guy 48 hours notice.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  8. #8
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    I guess I'm just too nice. Thanks guys, for opening my eyes. I'll delete the cronjob and tell him to cancel his account if he's only going to use my server for cronjobs.

  9. #9
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    He cancelled his account. He was only using me for my cpu.

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    lusers, all they want you for is your cpu cycles
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #11
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Quote Originally Posted by casey
    He cancelled his account. He was only using me for my cpu.
    I'm sure he will end up hosting with chadi soon

    Seriouly though, you should strongly consider adding verbage to your AUP that prohibits clients from running scripts that are either called by or redirect their output to another server.

  12. #12
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Quote Originally Posted by SarcNBit
    Seriouly though, you should strongly consider adding verbage to your AUP that prohibits clients from running scripts that are either called by or redirect their output to another server.
    Yeah, now I'm going to have to. I guess I've just been lucky so far.

Similar Threads & Tags
Similar threads

  1. cpu usage information on cPanel client
    By kerjatop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-19-2011, 01:28 PM
  2. Client hogging tons of CPU with WP - What to do?
    By organic in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 10-28-2010, 07:31 AM
  3. Crontabs not showing up
    By ultrai in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-17-2008, 02:51 AM
  4. Game Server Management Question (Client Side)
    By GKey in forum cPGS Discussions
    Replies: 4
    Last Post: 09-13-2007, 04:58 AM
  5. question about process CPU
    By Josephp in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-01-2006, 03:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube