You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Torsten Foertsch <to...@gmx.net> on 2005/01/12 18:12:42 UTC

request counter

Hi,

is there a counter in Apache2 that indicates how many requests have been 
served by a particular child with prefork mpm?

If yes, is it accessible via perl?

Thanks,
Torsten

Re: request counter

Posted by Stas Bekman <st...@stason.org>.
Torsten Foertsch wrote:
> Hi,
> 
> is there a counter in Apache2 that indicates how many requests have been 
> served by a particular child with prefork mpm?

Yes. The scoreboard.

> If yes, is it accessible via perl?

Yes. Apache::Scoreboard:
http://search.cpan.org/dist/Apache-Scoreboard/

and you can see it in use in Apache::VMonitor:
http://search.cpan.org/dist/Apache-VMonitor/


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: request counter

Posted by Perrin Harkins <pe...@elem.com>.
Torsten Foertsch wrote:
> is there a counter in Apache2 that indicates how many requests have been 
> served by a particular child with prefork mpm?

You can just make one yourself in a global variable.  See 
Apache::SizeLimit for an example.

- Perrin


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 1/10/2005