Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Location
    Cardiff - United Kingdom
    Posts
    1,568

    Keep getting problematic httpd processes (9% of memory each)

    Hey all,
    I recently modified my loadavg script to store in a database the output of a top command if there's ever server loads of over 1. Overnight I've had 12 such times logged to a database.

    Upon inspecting things (I was expected there is a recurring problem), the top command reveals that there are always three queries running together which take over 30 seconds each, and take up ~9% of memory each:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    26119 nobody 25 0 73492 38m 4792 S 0 8.5 0:30.00 httpd
    7313 nobody 25 0 76716 42m 4992 S 0 9.5 0:29.99 httpd
    14212 nobody 19 0 70688 39m 4844 S 0 8.8 0:30.03 httpd
    Is there a command that will tell me exactly what these processes are? Like in WHM's "CPU/Memory/MySQL Usage" whereby it says what account these httpd processes are coming from, and the actual page they are coming from as well?

    If I could log these details (i.e. account and page these are coming from) along with the output of the top command, I can hopefully troubleshoot where this problem is coming from.

    Thanks,
    Tristan Perry
    Plagiarism Guard - Protect Against Content Theft
    Tristan Perry - Personal blog

  2. #2
    Join Date
    Apr 2000
    Location
    California
    Posts
    3,051
    Check scoreboard and the logs. You can check the PWD of the process, but it'll likely not be what you need. It's probably due to an SSI ran page or a PHP (or CGI if you don't use suexec) script.

  3. #3
    Join Date
    Sep 2006
    Location
    Cardiff - United Kingdom
    Posts
    1,568
    Thanks, I'll check that out

    What's "scoreboard" though?
    Plagiarism Guard - Protect Against Content Theft
    Tristan Perry - Personal blog

  4. #4
    Join Date
    Dec 2006
    Posts
    477
    Scorecard is part of the mod_status output: http://httpd.apache.org/docs/2.2/mod/mod_status.html

Posting Permissions

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