1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Checking CPU usage

Discussion in 'Apache' started by stephan2307, Mar 31, 2011.

  1. #1
    I am having the following question.

    On our intranet system we often have people perform searches that take huge amount of CPU resources. Sometimes 100%.

    Is there a way to see what IP address is taking how much of the CPU resources??

    Server is Ubuntu

    thanks for any help
     
    stephan2307, Mar 31, 2011 IP
  2. AlC4Tr4z

    AlC4Tr4z Member

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #2
    AlC4Tr4z, Apr 1, 2011 IP
  3. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #3
    not quite what I am looking for. I do need to see each IP that requests a php file and how much cpu it is using.

    for now I set up a php script that doe it until I can find a better way
     
    stephan2307, Apr 1, 2011 IP
  4. CI-Andrew

    CI-Andrew Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Use the server-status functionality built in to Apache to see the connections and what they are doing. It will help you track down the user causing the problem. You might need to enable this in httpd.conf if it isn't already.
     
    CI-Andrew, Apr 6, 2011 IP
  5. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try typing top on the command line this is what i use on linux
     
    srisen2, May 5, 2011 IP
  6. umar7001

    umar7001 Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you can see under Linux shell kernel under system properties.
     
    umar7001, May 5, 2011 IP