My VPS is getting killed

Discussion in 'Apache' started by funtent, Jan 19, 2009.

  1. #1
    Last 1 minute 3.12
    Last 5 minutes 2.61
    Last 15 minutes 2.01

    My virtual private server is getting hammered a few times a day. All sites on it will be unresponsive for about 5 minutes at a time. The above is an actual example of the load taken during one of these unresponsive times.

    Memory and drive space are both at 55% used according to Plesk's system statistics page.

    According to MySQL Administrator app, the MySQL process is not using query cache at all.

    Question: how can I find out what's *most* in need of attention? (Is it MySQL? Apache? Is it getting DOS attacked? Is there a module I can install that says what's eating performance?)

    It's an Apache webserver running (inside?) Plesk on CentOS.

    TIA
     
    funtent, Jan 19, 2009 IP
  2. debunked

    debunked Prominent Member

    Messages:
    7,298
    Likes Received:
    416
    Best Answers:
    0
    Trophy Points:
    310
    #2
    You should be able to see what functions are pulling the most processessing, but I don't know plesk, so I can't tell you where. Once you find the culprit you can change or delete it. It also maybe something outside your server calling in. Do you have banners on your site that another server hosts? Have you checked for trojans?
     
    debunked, Jan 19, 2009 IP
  3. funtent

    funtent Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your response, debunked.

    I've looked everywhere in Plesk, and there's no comparisons of Apache vs. MySQL for instance, just the overall load numbers.

    Hmm... calling in, yes, didn't think of that. I'll put anti-image-leech directives in my .htaccess files. All banners are on my own servers.

    Haven't checked for trojans... how would I do that?
     
    funtent, Jan 19, 2009 IP
  4. yah0m

    yah0m Peon

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are on a VPS, the CPU usage is the average for the server since everyone shares it.
     
    yah0m, Jan 29, 2009 IP
  5. w0tan

    w0tan Peon

    Messages:
    77
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you can get to an SSH prompt, you can use the top command to see what processes are using the most CPU.

    umm no. it's called a virtual private server for a reason. ;)
     
    w0tan, Jan 30, 2009 IP