Apache2::ScoreboardDumper - Dumps the scoreboard to the error log when server slots are full
In your httpd.conf:
PerlInitHandler Apache2::ScoreboardDumper PerlSetVar ScoreboardDumpMethod All | LockFreq | Stochastic PerlSetVar ScoreboardDumpFreq 5 # dump every 5th request PerlSetVar ScoreboardDumpLock My::LockPackage # optional class to provide lock and unlock PerlSetVar ScoreboardDumpStochastic 0.5 # 0-1, percentage of time to dump scoreboard
This module will dump the scoreboard to the error log at info level if the number of httpd server slots becomes full. There are 3 different ways this module can be configured.
All - dump the scoreboard each request.
LockFreq - dump the scoreboard every Nth request. You must supply a locking package.
Stochastic - dump the scoreboard every time rand(1) is less than your supplied threshold.
Apache::Scoreboard, mod_perl2
Fred Moyer, <fred@redhotpenguin.com>
Copyright (C) 2014 by Fred Moyer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.2 or, at your option, any later version of Perl 5 you may have available.
To install Apache2::ScoreboardDumper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::ScoreboardDumper
CPAN shell
perl -MCPAN -e shell install Apache2::ScoreboardDumper
For more information on module installation, please visit the detailed CPAN module installation guide.