Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    SW Florida
    Posts
    1,051
    Plugin Contributions
    2

    Idea or Suggestion Can you help me decipher this?

    Still having on and off troubles with my hosts server speed. Their default answer is to blame slow sql queries then when you prove to them that there were only 3 slow queries in the last hour, then they go "wait a minute" and put me on hold for 10 - 20 minutes.

    Then they tell me that I have too many processes running. So I ssh into the system and run top and get the following.

    Code:
    [email protected] [~]# top -u user
    top - 12:11:26 up 92 days, 19:33,  4 users,  load average: 28.51, 46.37, 74.41
    Tasks: 1554 total,   9 running, 1507 sleeping,   0 stopped,  38 zombie
    Cpu(s): 72.7%us, 14.4%sy,  4.1%ni,  8.0%id,  0.5%wa,  0.0%hi,  0.2%si,  0.0%st
    Mem:  33012580k total, 31901192k used,  1111388k free,   978424k buffers
    Swap: 25164792k total,  1277252k used, 23887540k free, 21180840k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    30640 user  20   0  206m  18m 6764 S  5.6  0.1   0:00.17 php5
    28971 user  20   0 13812 2264  828 R  1.6  0.0   0:00.52 top
    10973 user  20   0 84484 1468  920 S  0.0  0.0   0:00.04 sshd
    My questions are the following:
    Obviously the tasks showing are me logged into the server but the task line shows 1554 tasks running. Are those MY tasks or the whole server?
    The memory line: Is that MY memory usage or the whole server?

    Looks to me like there are too many sleeping and zombie processes using up all the servers memory. Again are these processes MINE or the whole server?

    JOhn ><>
    Newest Site: ChargerPros - Stuff4Toys

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Can you help me decipher this?

    Quote Originally Posted by Stuff4Toys View Post
    the task line shows 1554 tasks running. Are those MY tasks or the whole server?
    If a 'bare metal' server, then it'll be for the whole server. If a virtualised server it'll be for your VM.
    Although it is impossible for me to say for sure if this is indicative of a problem (without more information), this is about 10 times more than I would normally expect (in either case)

    Quote Originally Posted by Stuff4Toys View Post
    The memory line: Is that MY memory usage or the whole server?
    Probably the whole server/VM, but these figures are subject to manipulation in a VM environment.

    Quote Originally Posted by Stuff4Toys View Post
    Looks to me like there are too many sleeping and zombie processes using up all the servers memory.
    Zombie processes don't use any memory, The are 'dead' pointers.
    Sleeping processes are (in simple terms) processes that are not being accessed by the CPU at the instant the data is being read. Typically this will be the the total number of processes, minus the running, stopped and zombie processes

    Quote Originally Posted by Stuff4Toys View Post
    Again are these processes MINE or the whole server?

    JOhn ><>
    Based on the output data that you have provided, these figures would be for the whole server. If it were for the user named 'user' the total tasks would be '3' (the same number of processes listed in the second section of the TOP output).

    Your load average is way off the scale for acceptable performance. The abnormally high number of zombies is probably a fallout of the system not being able to handle all of the running processes, and to solve the issue you need to somehow find out what all these processes are.

    As stated, the number of processes is about 10 times greater than I would expect, BUT, if the server is under some kind of attack (ddos, spam), or, even if the server processing a maillist then these kinds of peaks are not unusual. Occasionally these peaks are the result of software that fails to close network or SQL sockets. Again, you will need to determine which program/app is causing this.

    Try using the 'ps' command to see if that provides further clues.

    Cheers
    Rod

  3. #3
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Can you help me decipher this?

    Code:
    top - 12:11:26 up 92 days, 19:33,  4 users,  load average: 28.51, 46.37, 74.41
    Tasks: 1554 total,   9 running, 1507 sleeping,   0 stopped,  38 zombie
    Cpu(s): 72.7%us, 14.4%sy,  4.1%ni,  8.0%id,  0.5%wa,  0.0%hi,  0.2%si,  0.0%st
    The above 3 lines tell the story. This Server is overloaded.

 

 

Similar Threads

  1. Can someone pls help to correct this for me? Thank you.
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 20 Nov 2011, 03:42 AM
  2. If you can't login to admin this might help?
    By chaynes15 in forum Installing on a Windows Server
    Replies: 0
    Last Post: 25 Nov 2009, 01:16 AM
  3. Can you help me figure out this error?
    By KarstensMommy in forum General Questions
    Replies: 1
    Last Post: 23 Aug 2006, 12:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg