High Memory Usage Preventing Access to WHM

Discussion in 'Site & Server Administration' started by Domaineering, Aug 27, 2008.

  1. #1
    hi.
    i have been reading around and would like to have answers on situation
    like the subject before i switch to Master Reseller hosting to vps (as a starter).
    pardon me for a newbie question as indeed i am with regards to vps operation.

    nobody would know when a direct client or a sub-client would violate a TOS
    (for instance, running a high resource script or probably an underground streaming site).
    when this happens, since vps is RAM-limited, it'll come to a point that the script or the
    site would eat up all the memory resources preventing any other clients in the
    vps
    to access whm since no more left RAM to execute this cpanel.

    my question now:
    is there a way to run any command using putTy, or in any which way, to determine which high-resource contributing client is at fault. and is there a way to offline suspend the account without using WHM (like i said, there is
    WHM access due to high RAM).

    please help us i need to know this before i go deeper and buy myself a vps :(
     
    Domaineering, Aug 27, 2008 IP
    sawz likes this.
  2. redskins80

    redskins80 Banned

    Messages:
    357
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    redskins80, Aug 27, 2008 IP
  3. LH-Danny

    LH-Danny Guest

    Best Answers:
    0
    #3
    You should run the top command first to see if its mysql that is causing high memory usage, if it is, you can shut down mysql via SSH which will make access to WHM faster until you find the account using high mysql usage.
    I'm not too good with Linux commands but I know that on a VPS, WHM has a CPU/MySQL Usage link which will show how much CPU and memory an account has used on that day which will give you an clue.

    If you are looking for a VPS and dont have much experience in Linux, you're better off getting a VPS that offers some sort of management. We currently offer Semi-Managed packages which means we will help you with such problems & more.
     
    LH-Danny, Aug 27, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    As above, use top. The chances are, you'll see a lot of process by the name name (httpd, exim, mysql) if that's the abusive process. If its too slow to execute:
    service httpd stop
    Code (markup):
    (for httpd [Apache] for example), use kill:
    kill -9 httpd
    Code (markup):
    Just replace httpd with the bad process. This will get you into WHM where you can start the process again (or just use SSH) then investigate.

    Jay
     
    jayshah, Aug 28, 2008 IP
  5. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    use netstat -ntp | grep :80 -c to see if there is a flood or not on your port 80 :)
    you can change the port to check other port available :)
     
    nimhost, Aug 28, 2008 IP
  6. paul0988

    paul0988 Guest

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Congrats to 1,000,000th thread. did you get a gift?
     
    paul0988, Sep 5, 2008 IP
  7. Panzer

    Panzer Active Member

    Messages:
    381
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #7
    cPanel on a VPS isn't a good idea.. unless you have upwards of 512mb of RAM. I'd recommend lxadmin or webmin.
     
    Panzer, Sep 5, 2008 IP
  8. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #8
    True...though cpanel now forces VPS optimized edition on VPSs
     
    agnivo007, Sep 13, 2008 IP