.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "docs::api::Apache2::Status 3pm" .TH docs::api::Apache2::Status 3pm 2024-03-29 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Apache2::Status \- Embedded interpreter status information .SH Synopsis .IX Header "Synopsis" .Vb 1 \& \& \& # disallow public access \& Order Deny, Allow \& Deny from all \& Allow from 127.0.0.1 \& \& SetHandler modperl \& PerlOptions +GlobalRequest \& PerlResponseHandler Apache2::Status \& \& \& or \& \& \& \& # disallow public access \& Order Deny, Allow \& Deny from all \& Allow from 127.0.0.1 \& \& SetHandler perl\-script \& PerlResponseHandler Apache2::Status \& .Ve .SH Description .IX Header "Description" The \f(CW\*(C`Apache2::Status\*(C'\fR module provides some information about the status of the Perl interpreter embedded in the server. .PP Configure like so: .PP .Vb 1 \& \& \& # disallow public access \& Order Deny, Allow \& Deny from all \& Allow from 127.0.0.1 \& \& SetHandler modperl \& PerlOptions +GlobalRequest \& PerlResponseHandler Apache2::Status \& .Ve .PP Notice that under the \&\f(CW"modperl"\fR core handler the \fIEnvironment\fR menu option will show only the environment under that handler. To see the environment seen by handlers running under the \&\f(CW"perl\-script"\fR core handler, configure \f(CW\*(C`Apache2::Status\*(C'\fR as: .PP .Vb 1 \& \& \& # disallow public access \& Order Deny, Allow \& Deny from all \& Allow from 127.0.0.1 \& \& SetHandler perl\-script \& PerlResponseHandler Apache2::Status \& .Ve .PP Other modules can "plugin" a menu item like so: .PP .Vb 10 \& require Apache2::Module; \& Apache2::Status\->menu_item( \& \*(AqDBI\*(Aq => "DBI connections", #item for Apache::DBI module \& sub { \& my ($r, $q) = @_; #request and CGI objects \& my (@strings); \& push @strings, "blobs of html"; \& return \e@strings; #return an array ref \& } \& ) if Apache2::Module::loaded(\*(AqApache2::Status\*(Aq); .Ve .PP \&\fBWARNING\fR: \f(CW\*(C`Apache2::Status\*(C'\fR must be loaded before these modules via the \f(CW\*(C`PerlModule\*(C'\fR or \f(CW\*(C`PerlRequire\*(C'\fR directives (or from \&\fIstartup.pl\fR). .PP A very common setup might be: Perl Module B::TerseSize .PP .Vb 6 \& \& SetHandler perl\-script \& PerlResponseHandler Apache2::Status \& PerlSetVar StatusOptionsAll On \& PerlSetVar StatusDeparseOptions "\-p \-sC" \& .Ve .PP due to the implementation of Apache2::Status::noh_fileline in B::TerseSize, you must load B::TerseSize first. .SH Options .IX Header "Options" .ie n .SS """StatusOptionsAll""" .el .SS \f(CWStatusOptionsAll\fP .IX Subsection "StatusOptionsAll" This single directive will enable all of the options described below. .PP .Vb 1 \& PerlSetVar StatusOptionsAll On .Ve .ie n .SS """StatusDumper""" .el .SS \f(CWStatusDumper\fP .IX Subsection "StatusDumper" When browsing symbol tables, the values of arrays, hashes and scalars can be viewed via \f(CW\*(C`Data::Dumper\*(C'\fR if this configuration variable is set to \f(CW\*(C`On\*(C'\fR: .PP .Vb 1 \& PerlSetVar StatusDumper On .Ve .ie n .SS """StatusPeek""" .el .SS \f(CWStatusPeek\fP .IX Subsection "StatusPeek" With this option \f(CW\*(C`On\*(C'\fR and the \f(CW\*(C`Apache::Peek\*(C'\fR module installed, functions and variables can be viewed ala \f(CW\*(C`Devel::Peek\*(C'\fR style: .PP .Vb 1 \& PerlSetVar StatusPeek On .Ve .ie n .SS """StatusLexInfo""" .el .SS \f(CWStatusLexInfo\fP .IX Subsection "StatusLexInfo" With this option \f(CW\*(C`On\*(C'\fR and the \f(CW\*(C`B::LexInfo\*(C'\fR module installed, subroutine lexical variable information can be viewed. .PP .Vb 1 \& PerlSetVar StatusLexInfo On .Ve .ie n .SS """StatusDeparse""" .el .SS \f(CWStatusDeparse\fP .IX Subsection "StatusDeparse" With this option \f(CW\*(C`On\*(C'\fR subroutines can be "deparsed". .PP .Vb 1 \& PerlSetVar StatusDeparse On .Ve .PP Options can be passed to \f(CW\*(C`B::Deparse::new\*(C'\fR like so: .PP .Vb 1 \& PerlSetVar StatusDeparseOptions "\-p \-sC" .Ve .PP See the \f(CW\*(C`B::Deparse\*(C'\fR manpage for details. .ie n .SS """StatusTerse""" .el .SS \f(CWStatusTerse\fP .IX Subsection "StatusTerse" With this option \f(CW\*(C`On\*(C'\fR, text-based op tree graphs of subroutines can be displayed, thanks to \f(CW\*(C`B::Terse\*(C'\fR. .PP .Vb 1 \& PerlSetVar StatusTerse On .Ve .ie n .SS """StatusTerseSize""" .el .SS \f(CWStatusTerseSize\fP .IX Subsection "StatusTerseSize" With this option \f(CW\*(C`On\*(C'\fR and the \f(CW\*(C`B::TerseSize\*(C'\fR module installed, text-based op tree graphs of subroutines and their size can be displayed. See the \f(CW\*(C`B::TerseSize\*(C'\fR docs for more info. .PP .Vb 1 \& PerlSetVar StatusTerseSize On .Ve .ie n .SS """StatusTerseSizeMainSummary""" .el .SS \f(CWStatusTerseSizeMainSummary\fP .IX Subsection "StatusTerseSizeMainSummary" With this option \f(CW\*(C`On\*(C'\fR and the \f(CW\*(C`B::TerseSize\*(C'\fR module installed, a \&\fI"Memory Usage"\fR will be added to the \f(CW\*(C`Apache2::Status\*(C'\fR main menu. This option is disabled by default, as it can be rather cpu intensive to summarize memory usage for the entire server. It is strongly suggested that this option only be used with a development server running in \f(CW\*(C`\-X\*(C'\fR mode, as the results will be cached. .PP .Vb 1 \& PerlSetVar StatusTerseSizeMainSummary On .Ve .ie n .SS """StatusGraph""" .el .SS \f(CWStatusGraph\fP .IX Subsection "StatusGraph" When \f(CW\*(C`StatusDumper\*(C'\fR is enabled, another link \fI"OP Tree Graph"\fR will be present with the dump if this configuration variable is set to \&\f(CW\*(C`On\*(C'\fR: .PP .Vb 1 \& PerlSetVar StatusGraph .Ve .PP This requires the B module (part of the Perl compiler kit) and \&\f(CW\*(C`B::Graph\*(C'\fR (version 0.03 or higher) module to be installed along with the \f(CW\*(C`dot\*(C'\fR program. .PP Dot is part of the graph visualization toolkit from AT&T: http://www.graphviz.org/. .PP \&\fBWARNING\fR: Some graphs may produce very large images, some graphs may produce no image if \f(CW\*(C`B::Graph\*(C'\fR's output is incorrect. .ie n .SS """Dot""" .el .SS \f(CWDot\fP .IX Subsection "Dot" Location of the dot program for \f(CW\*(C`StatusGraph\*(C'\fR, if other than \fI/usr/bin\fR or \fI/usr/local/bin\fR .ie n .SS """GraphDir""" .el .SS \f(CWGraphDir\fP .IX Subsection "GraphDir" Directory where \f(CW\*(C`StatusGraph\*(C'\fR should write it's temporary image files. Default is \f(CW\*(C`$ServerRoot/logs/b_graphs\*(C'\fR. .SH Prerequisites .IX Header "Prerequisites" The \f(CW\*(C`Devel::Symdump\*(C'\fR module, version \f(CW2.00\fR or higher. .PP Other optional functionality requirements: \f(CW\*(C`B::Deparse\*(C'\fR \- 0.59, \&\f(CW\*(C`B::Fathom\*(C'\fR \- 0.05, \f(CW\*(C`\*(C`B::Graph\*(C'\*(C'\fR \- 0.03. .SH Copyright .IX Header "Copyright" mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. .SH "See Also" .IX Header "See Also" \&\fBperl\fR\|(1), \fBApache\fR\|(3), \fBDevel::Symdump\fR\|(3), \fBData::Dumper\fR\|(3), B(3), \&\f(CW\*(C`B::Graph\*(C'\fR(3), mod_perl 2.0 documentation. .SH Authors .IX Header "Authors" Doug MacEachern with contributions from Stas Bekman