Unable to see individual processes using top, when using mod_perl

Posted on 2006-04-13
Last Modified: 2010-04-22
When I have mod_perl enabled, and I try to watch "top" on a linux box, all I see is httpd processes near the top. When I disable mod_perl, I can see the individual .cgi files running. I understand that this is exactly what mod_perl is supposed to do, to cache itself inside of httpd, but I would love the best of both worlds, specifically to see what individual processes are sucking up the CPU.

Is there a way to see what .cgi's are actually running, when mod_perl is enabled?

Thank you in advance!
Question by:timdr
    1 Comment
    LVL 27

    Accepted Solution

    You may see, what pages are currently queried, this may help.

    Just enable extended status in httpd.conf:

    # uncommend this
    ExtendedStatus ON

    # Also fix Allow from ..
    <Location /server-status>

    Restart apache,
    now browse http://yourserver/server-status

    You will see something like this:
    Srv      PID      Acc      M      CPU       SS      Req      Conn      Child      Slot      Client      VHost      Request
    0-0      26292      0/0/0      W       0.00      0      1786959044      0.0      0.00      0.00      GET /server-status HTTP/1.1

    Srv      Child Server number - generation
    PID      OS process ID
    Acc      Number of accesses this connection / this child / this slot
    M      Mode of operation
    CPU      CPU usage, number of seconds
    SS      Seconds since beginning of most recent request
    Req      Milliseconds required to process most recent request
    Conn      Kilobytes transferred this connection
    Child      Megabytes transferred this child
    Slot      Total megabytes transferred this slot


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
    The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now