This is a discussion on Reading Apache scoreboard WITHOUT mod_perl within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm trying to support a server that runs multiple instances of Apache. We've got maybe a dozen clients ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to support a server that runs multiple instances of Apache.
We've got maybe a dozen clients on the machine, each running his own instance (I know it's not a good idea, and I do intend to get away from running that way, but doing so will take a little while). I want to keep track of how many clients each instance has running. I know I can get tht instance using mod_status or Apache::Scoreboard+mod_perl. But I'd really like to be able to get this info directly, without having to make an http request, and installing mod_perl just for this purpose would be a major pain. Can anyone tell me whether it would be reasonable to read Apache's scoreboard file to get this info? I've just started digging into the Apache source code (2.0.54) to figure out how the scoreboard file is written, but it's going to take me some time to figure this all out. |
|
|||
|
Dan M wrote:
> Can anyone tell me whether it would be reasonable to read Apache's > scoreboard file to get this info? I've just started digging into the > Apache source code (2.0.54) to figure out how the scoreboard file is > written, but it's going to take me some time to figure this all out. In 2.0 you'd need an HTTP request (as in mod_status). In 2.1/2.2, you could use ap_hook_monitor to monitor it. -- Nick Kew |
|
|||
|
On Wed, 24 Aug 2005 12:08:36 +0100, Nick Kew wrote:
> Dan M wrote: > >> Can anyone tell me whether it would be reasonable to read Apache's >> scoreboard file to get this info? I've just started digging into the >> Apache source code (2.0.54) to figure out how the scoreboard file is >> written, but it's going to take me some time to figure this all out. > > In 2.0 you'd need an HTTP request (as in mod_status). > > In 2.1/2.2, you could use ap_hook_monitor to monitor it. Thanks. I guess it's time to look at the docs on LWP again. Dan |
| Thread Tools | |
| Display Modes | |
|
|