• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

Unable to see individual processes using top, when using mod_perl

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!
1 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      www.yourhost.com      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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now