mod_status.c revision aa616c3b5a4aa59867472cddf7d8e63693808f0e
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz/* ====================================================================
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz * The Apache Software License, Version 1.1
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * Copyright (c) 2000-2001 The Apache Software Foundation. All rights
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * reserved.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Redistribution and use in source and binary forms, with or without
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * modification, are permitted provided that the following conditions
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 1. Redistributions of source code must retain the above copyright
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * notice, this list of conditions and the following disclaimer.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd * 2. Redistributions in binary form must reproduce the above copyright
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * notice, this list of conditions and the following disclaimer in
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * the documentation and/or other materials provided with the
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * distribution.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * 3. The end-user documentation included with the redistribution,
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh * if any, must include the following acknowledgment:
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * "This product includes software developed by the
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Apache Software Foundation (http://www.apache.org/)."
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * Alternately, this acknowledgment may appear in the software itself,
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * if and wherever such third-party acknowledgments normally appear.
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * 4. The names "Apache" and "Apache Software Foundation" must
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * not be used to endorse or promote products derived from this
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * software without prior written permission. For written
1b21d7b3d97def358b2e923655edeb16613a1c31gstein * permission, please contact apache@apache.org.
2d71630471d1c23f0137309e3c3957c633ecbfd6rbb * 5. Products derived from this software may not be called "Apache",
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * nor may "Apache" appear in their name, without prior written
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * permission of the Apache Software Foundation.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
51af95bb51b5084e883bad250b2afa2838e9ceebfielding * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
d4f1d9c1ff112a8ab9bee31f196973761329b236rbb * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
7fae9cc4639013f3c04c085547256c68814aee8ftrawick * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
7fae9cc4639013f3c04c085547256c68814aee8ftrawick * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
7fae9cc4639013f3c04c085547256c68814aee8ftrawick * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
7fae9cc4639013f3c04c085547256c68814aee8ftrawick * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * SUCH DAMAGE.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * ====================================================================
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * This software consists of voluntary contributions made by many
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * individuals on behalf of the Apache Software Foundation. For more
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * information on the Apache Software Foundation, please see
785be1b6298010956622771c870ab3cd8ca57a2faaron * Portions of this software are based upon public domain software
785be1b6298010956622771c870ab3cd8ca57a2faaron * originally written at the National Center for Supercomputing Applications,
785be1b6298010956622771c870ab3cd8ca57a2faaron * University of Illinois, Urbana-Champaign.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* Status Module. Display lots of internal data about how Apache is
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * performing and the state of all children processes.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * To enable this, add the following lines into any config file:
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * <Location /server-status>
785be1b6298010956622771c870ab3cd8ca57a2faaron * SetHandler server-status
785be1b6298010956622771c870ab3cd8ca57a2faaron * </Location>
785be1b6298010956622771c870ab3cd8ca57a2faaron * You may want to protect this location by password or domain so no one
785be1b6298010956622771c870ab3cd8ca57a2faaron * else can look at it. Then you can access the statistics with a URL like:
f4b96a996afbc46872f57ad1450e6ee1c8f13707jorton * /server-status - Returns page using tables
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * /server-status?notable - Returns page for browsers without table support
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * /server-status?refresh - Returns page with 1 second refresh
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * /server-status?refresh=6 - Returns page with refresh every 6 seconds
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * /server-status?auto - Returns page with data for automatic parsing
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Mark Cox, mark@ukweb.com, November 1995
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 12.11.95 Initial version for www.telescope.org
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 13.3.96 Updated to remove rprintf's [Mark]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 18.3.96 Added CPU usage, process information, and tidied [Ben Laurie]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 18.3.96 Make extra Scoreboard variables #definable
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 25.3.96 Make short report have full precision [Ben Laurie suggested]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 25.3.96 Show uptime better [Mark/Ben Laurie]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 29.3.96 Better HTML and explanation [Mark/Rob Hartill suggested]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 09.4.96 Added message for non-STATUS compiled version
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 18.4.96 Added per child and per slot counters [Jim Jagielski]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 01.5.96 Table format, cleanup, even more spiffy data [Chuck Murcko/Jim J.]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 18.5.96 Adapted to use new rprintf() routine, incidentally fixing a missing
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * piece in short reports [Ben Laurie]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 21.5.96 Additional Status codes (DNS and LOGGING only enabled if
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * extended STATUS is enabled) [George Burgyan/Jim J.]
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * 10.8.98 Allow for extended status info at runtime (no more STATUS)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#endif /* NEXT */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define DEFAULT_TIME_FORMAT "%A, %d-%b-%Y %H:%M:%S %Z"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define STATUS_MAGIC_TYPE "application/x-httpd-status"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *command-related code. This is here to prevent use of ExtendedStatus
8a261a9f7d18d1e862d63f68e93f288d3e1f0d94trawick * without status_module included.
6b38fca3ec543a0f72efd5683e91a0b30fc752d1trawickstatic const char *set_extended_status(cmd_parms *cmd, void *dummy, int arg)
58fd79b56eb624bf011772994e9761d3c2e228c1orlikowski const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
e160b861b50a3a8dcc013b8cd3ef849fe777e52fgregames AP_INIT_FLAG("ExtendedStatus", set_extended_status, NULL, RSRC_CONF,
e160b861b50a3a8dcc013b8cd3ef849fe777e52fgregames "\"On\" to enable extended status information, \"Off\" to disable"),
e160b861b50a3a8dcc013b8cd3ef849fe777e52fgregames/* Format the number of bytes nicely */
e160b861b50a3a8dcc013b8cd3ef849fe777e52fgregamesstatic void format_byte_out(request_rec *r, unsigned long bytes)
7bf77d70b6830636bc36e6b76a228c301be23ff7brianpstatic void format_kbyte_out(request_rec *r, unsigned long kbytes)
39b76a07959a0a332366c735a23894d9e8ed6872trawickstatic void show_time(request_rec *r, apr_interval_time_t tsecs)
de00ec7378227d05be63ecd2053ebbb01b940023jorton ap_rprintf(r, " %d day%s", days, days == 1 ? "" : "s");
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rprintf(r, " %d hour%s", hrs, hrs == 1 ? "" : "s");
066877f1a045103acfdd376d48cdd473c33f409bdougm ap_rprintf(r, " %d minute%s", mins, mins == 1 ? "" : "s");
6b38fca3ec543a0f72efd5683e91a0b30fc752d1trawick ap_rprintf(r, " %d second%s", secs, secs == 1 ? "" : "s");
74b39333600dee3260355ad3a06e36ef6c61c8f1dreid/* Main handler for x-httpd-status requests */
74b39333600dee3260355ad3a06e36ef6c61c8f1dreid/* ID values for command table */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingstatic const struct stat_opt status_options[] = /* see #defines above */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding const char *loc;
785be1b6298010956622771c870ab3cd8ca57a2faaron int j, i, res;
785be1b6298010956622771c870ab3cd8ca57a2faaron unsigned long count = 0;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding unsigned short conn_lres;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding unsigned long bcount = 0;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding unsigned long kbcount = 0;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding char stat_buffer[HARD_SERVER_LIMIT * HARD_THREAD_LIMIT];
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding pid_t pid_buffer[HARD_SERVER_LIMIT * HARD_THREAD_LIMIT];
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding if (strcmp(r->handler, STATUS_MAGIC_TYPE) && strcmp(r->handler, "server-status")) {
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding "Server status unavailable in inetd mode");
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Simple table-driven form data set parser that lets you alter the header
785be1b6298010956622771c870ab3cd8ca57a2faaron if ((loc = ap_strstr_c(r->args, status_options[i].form_data_str)) != NULL) {
785be1b6298010956622771c870ab3cd8ca57a2faaron if (*(loc + strlen(status_options[i].form_data_str)) == '='
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* ap_sync_scoreboard_image(); */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding for (j = 0; j < HARD_THREAD_LIMIT; ++j) {
17f3ba69f65182426ad4e568bb2d6f192ccd2ed5trawick if (lres != 0 || (res != SERVER_READY && res != SERVER_DEAD)) {
17f3ba69f65182426ad4e568bb2d6f192ccd2ed5trawick#endif /* HAVE_TIMES */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding /* up_time in seconds */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding up_time = (apr_uint32_t) ((nowtime - ap_restart_time)/APR_USEC_PER_SEC);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding "<HTML><HEAD>\n<TITLE>Apache Status</TITLE>\n</HEAD><BODY>\n",
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rvputs(r, ap_get_server_name(r), "</H1>\n\n", NULL);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_ht_time(r->pool, nowtime, DEFAULT_TIME_FORMAT, 0), "<br>\n", NULL);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_ht_time(r->pool, ap_restart_time, DEFAULT_TIME_FORMAT, 0),
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_rprintf(r, "Parent Server Generation: %d <br>\n", (int) ap_my_generation);
17f3ba69f65182426ad4e568bb2d6f192ccd2ed5trawick ap_rprintf(r, "Total Accesses: %lu\nTotal kBytes: %lu\n",
17f3ba69f65182426ad4e568bb2d6f192ccd2ed5trawick /* Allow for OS/2 not having CPU stats */
785be1b6298010956622771c870ab3cd8ca57a2faaron else { /* !short_report */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_rprintf(r, "Total accesses: %lu - Total Traffic: ", count);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding /* Allow for OS/2 not having CPU stats */
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf format_byte_out(r, KBYTE * (float) kbcount / (float) up_time);
785be1b6298010956622771c870ab3cd8ca57a2faaron format_byte_out(r, KBYTE * (float) kbcount / (float) count);
785be1b6298010956622771c870ab3cd8ca57a2faaron } /* short_report */
785be1b6298010956622771c870ab3cd8ca57a2faaron } /* ap_extended_status */
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rprintf(r, "\n%d requests currently being processed, %d idle servers\n"
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf ap_rprintf(r, "BusyServers: %d\nIdleServers: %d\n", busy, ready);
785be1b6298010956622771c870ab3cd8ca57a2faaron /* send the scoreboard 'table' out */
785be1b6298010956622771c870ab3cd8ca57a2faaron for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf for (j = 0; j < HARD_THREAD_LIMIT; ++j) {
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf if ((indx % STATUS_MAXLINE == (STATUS_MAXLINE - 1)) && !short_report)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_rputs("\"<B><code>_</code></B>\" Waiting for Connection, \n", r);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ap_rputs("\"<B><code>S</code></B>\" Starting up, \n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rputs("\"<B><code>R</code></B>\" Reading Request,<BR>\n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rputs("\"<B><code>W</code></B>\" Sending Reply, \n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rputs("\"<B><code>K</code></B>\" Keepalive (read), \n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rputs("\"<B><code>D</code></B>\" DNS Lookup,<BR>\n", r);
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf ap_rputs("\"<B><code>G</code></B>\" Gracefully finishing, \n", r);
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf ap_rputs("\"<B><code>I</code></B>\" Idle cleanup of worker, \n", r);
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf ap_rputs("\"<B><code>.</code></B>\" Open slot with no current process<P>\n", r);
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf for (j = 0; j < HARD_THREAD_LIMIT; ++j) {
785be1b6298010956622771c870ab3cd8ca57a2faaron if (++k >= 3) {
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf /* Allow for OS/2 not having CPU stats */
b88f887ed5554d9050d97f9a56a89ae62bdbd906fanf ap_rputs("<p>\n\n<table border=0><tr><th>Srv<th>PID<th>Acc<th>M\n<th>SS<th>Req<th>Conn<th>Child<th>Slot<th>Client<th>VHost<th>Request</tr>\n\n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron ap_rputs("<p>\n\n<table border=0><tr><th>Srv<th>PID<th>Acc<th>M<th>CPU\n<th>SS<th>Req<th>Conn<th>Child<th>Slot<th>Client<th>VHost<th>Request</tr>\n\n", r);
785be1b6298010956622771c870ab3cd8ca57a2faaron for (i = 0; i < HARD_SERVER_LIMIT; ++i) {
785be1b6298010956622771c870ab3cd8ca57a2faaron for (j = 0; j < HARD_THREAD_LIMIT; ++j) {
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#endif /* HAVE_TIMES */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding req_time = ws_record.stop_time - ws_record.start_time;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#endif /* HAVE_TIMES */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ((ws_record.stop_time - ws_record.start_time) * 1000) +
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding ((ws_record.stop_time - ws_record.start_time) / 1000);
785be1b6298010956622771c870ab3cd8ca57a2faaron "<b>Server %d-%d</b> (-): %d|%lu|%lu [",
785be1b6298010956622771c870ab3cd8ca57a2faaron "): %d|%lu|%lu [",
785be1b6298010956622771c870ab3cd8ca57a2faaron /* Allow for OS/2 not having CPU stats */
785be1b6298010956622771c870ab3cd8ca57a2faaron (long)((nowtime - ws_record.last_used) / APR_USEC_PER_SEC),
785be1b6298010956622771c870ab3cd8ca57a2faaron else { /* !no_table_report */
785be1b6298010956622771c870ab3cd8ca57a2faaron "<tr><td><b>%d-%d</b><td>-<td>%d/%lu/%lu",
785be1b6298010956622771c870ab3cd8ca57a2faaron "<td>%d/%lu/%lu",
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding /* Allow for OS/2 not having CPU stats */
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm (long)((nowtime - ws_record.last_used) / APR_USEC_PER_SEC),
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding (float) conn_bytes / KBYTE, (float) my_bytes / MBYTE,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding "<td>?<td nowrap>?<td nowrap>..reading.. </tr>\n\n");
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding "<td>%s<td nowrap>%s<td nowrap>%s</tr>\n\n",
91583d2e9c0550f539ea6f4dedf051979ad1ad88fanf } /* no_table_report */
91583d2e9c0550f539ea6f4dedf051979ad1ad88fanf } /* !short_report */
91583d2e9c0550f539ea6f4dedf051979ad1ad88fanf } /* if (<active child>) */
91583d2e9c0550f539ea6f4dedf051979ad1ad88fanf } /* for () */
3c48210f662a2ab8ed90708989e04c09aae33cb2trawick<tr><th>Srv<td>Child Server number - generation\n \
3926b3b7716683a1241c1ff6f8dd2f9c5073665afanf<tr><th>PID<td>OS process ID\n \
3c48210f662a2ab8ed90708989e04c09aae33cb2trawick<tr><th>Acc<td>Number of accesses this connection / this child / this slot\n \
3c48210f662a2ab8ed90708989e04c09aae33cb2trawick<tr><th>M<td>Mode of operation\n \
3926b3b7716683a1241c1ff6f8dd2f9c5073665afanf<tr><th>SS<td>Seconds since beginning of most recent request\n \
9c518951a46c7a12e20876827bb2e84ef87d3c11jerenkrantz<tr><th>Req<td>Milliseconds required to process most recent request\n \
9c518951a46c7a12e20876827bb2e84ef87d3c11jerenkrantz<tr><th>Conn<td>Kilobytes transferred this connection\n \
9c518951a46c7a12e20876827bb2e84ef87d3c11jerenkrantz<tr><th>Child<td>Megabytes transferred this child\n \
9c518951a46c7a12e20876827bb2e84ef87d3c11jerenkrantz<tr><th>Slot<td>Total megabytes transferred this slot\n \
9c518951a46c7a12e20876827bb2e84ef87d3c11jerenkrantz</table>\n", r);
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding<tr><th>Srv<td>Child Server number - generation\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>PID<td>OS process ID\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>Acc<td>Number of accesses this connection / this child / this slot\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>M<td>Mode of operation\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>CPU<td>CPU usage, number of seconds\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>SS<td>Seconds since beginning of most recent request\n \
d40fc22d54d5969fa330e4983cf07f450f7029cebrianp<tr><th>Req<td>Milliseconds required to process most recent request\n \
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick<tr><th>Conn<td>Kilobytes transferred this connection\n \
644be6f54749d2d9950d2c4d2ac448f7af016d26martin<tr><th>Child<td>Megabytes transferred this child\n \
644be6f54749d2d9950d2c4d2ac448f7af016d26martin<tr><th>Slot<td>Total megabytes transferred this slot\n \
43c3e6a4b559b76b750c245ee95e2782c15b4296jim</table>\n", r);
0db1b9810f06c0e3c537e0e0dfbc30160c308526trawick ap_rputs("<hr>To obtain a full report with current status information ", r);
3c48210f662a2ab8ed90708989e04c09aae33cb2trawick ap_rputs("you need to use the <code>ExtendedStatus On</code> directive. \n", r);
3c8b3749225668f06abbb2b023a833a2cef46931brianpstatic void status_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s)
785be1b6298010956622771c870ab3cd8ca57a2faaron status_flags[SERVER_DEAD] = '.'; /* We don't want to assume these are in */
785be1b6298010956622771c870ab3cd8ca57a2faaron status_flags[SERVER_READY] = '_'; /* any particular order in scoreboard.h */
2d399cd7535887fceaa9f8f116eb98ce68ddd602trawick ap_hook_handler(status_handler, NULL, NULL, APR_HOOK_MIDDLE);