Dying!! Resource problem. . .

Discussion in 'Site & Server Administration' started by Megafu, Jun 26, 2006.

  1. #1
    hello everyone i have a VPS and am having som trouble with the following. Since it uses PLESK (actual version is 7.1.6) when i go to:

    System -> Virtuozzo

    and check:

    System Usage -> Resource
    System (Capacity)

    and it alwas high like over 75% ... 80%. Sometimes even 100% and then . no more server . :mad: So i sent a email to the webhosting company and the guy told me i had to manage it by myself blablabla ... but he also said that usually it is due to the inexistense of "logs gestion" what makes the logs big and bigger and then the server fails.

    Can someone pleaaaase help me. :D
     
    Megafu, Jun 26, 2006 IP
  2. wheel

    wheel Peon

    Messages:
    477
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't see how logging has anything to do with CPU useage.

    The first two things to try, assuming you're on linux. are the following commands:
    top
    ps aux

    The top command shows you which commands are consuming CPU cycles. That'll tell you if it's mysql, apache, or whatever. That should help narrow it down.

    The 'ps aux' shows all the processes on the server. That'll let you see if you have something crazy like hundreds of mysql threads running or whatever, and again help point to the problem.

    In terms of logs, try this command:
    df
    That gives you free disk space. If you see something at 100%, then you've got a problem. It'll tell you the partition that is full as well. After you know which partition is full you can then go to that partition and type in:
    du -s *
    which will give you file sizes for directories and files in the partition. navigate down into the directory using du -s * at each step till you find where the problem is.
     
    wheel, Jun 27, 2006 IP