The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to track apache processes

Discussion in 'EasyApache' started by hicom, Nov 29, 2004.

  1. hicom

    hicom Well-Known Member

    Joined:
    May 23, 2003
    Messages:
    272
    Likes Received:
    0
    Trophy Points:
    16
    Hello everyone, I'm wondering if there is a way to track which child objects associated with a specific apache PIDs.

    For example, I see in TOP these processes:

    15350 nobody 2 0 22896K 17244K sbwait 0:16 4.79% 4.79% httpd
    15345 nobody 2 0 27788K 22100K sbwait 0:06 0.00% 0.00% httpd
    15338 nobody 2 0 27872K 22232K sbwait 0:05 0.00% 0.00% httpd
    15349 nobody 2 0 23228K 17576K sbwait 0:05 0.00% 0.00% httpd
    15339 nobody 2 0 22512K 16860K sbwait 0:05 0.00% 0.00% httpd
    15413 nobody 18 0 23080K 17428K lockf 0:05 0.00% 0.00% httpd

    I want to find out which website is causing the CPU usage at PID: 15350

    Anyway to track them down ? Apache-Status in WHM seems good, but I was not able to use it successfully to track abusive scripts. My main need is to track cgi,php,perl scripts.
     
  2. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    if you look in whm, to the apache-status page you'll see alot of accesed pages there.

    each one as a PID . compre that pid with the one in top, and there you have your resource-hog
     
Loading...

Share This Page