Can someone tell me what this means

Discussion in 'Apache' started by GMC, Apr 6, 2010.

  1. #1
    This is a list of processors running from a print out from my webmin

    my sites are running very slowly!!

    Why is it running an apache restart all the time??

    I am confused


    [​IMG]

    Any help is appreciated

    GMC
     
    GMC, Apr 6, 2010 IP
  2. Shauni

    Shauni Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    why don't you look at the logs
     
    Shauni, Apr 7, 2010 IP
  3. esupportsnet

    esupportsnet Greenhorn

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Hello,

    Do you have root access to the server. If yes, please ssh to the server and paste the result of the following command

    netstat -alpn | grep :80 | aswk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
     
    esupportsnet, Apr 7, 2010 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    It means that you have a lot of processes currently running. You also seem to have many web server processes running. Just to clarify the above command posted:

    This should be :
    
    netstat -alpn | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
    
    Code (markup):
    What this does, is list the number of connection per IP that you have on your server.
     
    RHS-Chris, Apr 7, 2010 IP
  5. GMC

    GMC Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #5
    Thanks for the replies - yes I have root access

    here is the my first attempt at the command

    netstat -alpn | grep :80 | awk '{print $5}' | cut -d: -fl | sort | uniq -c | sort -n
    cut: invalid byte or field list
    Try `cut --help' for more information.


    I will try again
     
    GMC, Apr 7, 2010 IP
  6. GMC

    GMC Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #6
    I cant make it work

    is the command right?
     
    GMC, Apr 7, 2010 IP
  7. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #7
    Try this one:
    
    netstat -anp | grep ':80' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
    
    Code (markup):
    You should copy and paste, as you changed the -f1 to -fl.

    Chris
     
    RHS-Chris, Apr 8, 2010 IP
  8. esupportsnet

    esupportsnet Greenhorn

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    Sorry for the typos. Try this command and let me know how many connections are there

    netstat -anp | grep ':80' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
     
    esupportsnet, Apr 8, 2010 IP
  9. GMC

    GMC Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #9
    Just an update

    I was hacked - and lost control of the server

    This explains the resource leaching

    Thanks to those that tried to assist - it is always appreciated

    GMC
     
    GMC, Apr 27, 2010 IP