Apache-Watchdog-RunAway
view release on metacpan or search on metacpan
my @args = ($Apache::Watchdog::RunAway::SCOREBOARD_URL);
if (MP2) {
# mp's Apache::Scoreboard::fetch needs a pool arg
$pool = APR::Pool->new;
unshift @args, $pool;
}
my $image = Apache::Scoreboard->fetch(@args);
unless ($image){
# reset the counters and timers
%req_proc_time = ();
%req_number = ();
debug "couldn't retrieve the scoreboard image ",
"from $Apache::Watchdog::RunAway::SCOREBOARD_URL";
return;
}
for (my $i = 0; $i < $image->server_limit; $i++) {
my $parent_score = MP2 ? $image->parent_score($i) : $image->servers($i);
next unless $parent_score;
( run in 3.708 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )