mod_status.c revision 98cd3186185bb28ae6c95a3f159899fcf56a663f
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding/* ====================================================================
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * The Apache Software License, Version 1.1
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986fielding * Copyright (c) 2000-2002 The Apache Software Foundation. All rights
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * reserved.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * Redistribution and use in source and binary forms, with or without
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * modification, are permitted provided that the following conditions
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * 1. Redistributions of source code must retain the above copyright
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * notice, this list of conditions and the following disclaimer.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * 2. Redistributions in binary form must reproduce the above copyright
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * notice, this list of conditions and the following disclaimer in
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * the documentation and/or other materials provided with the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * distribution.
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * 3. The end-user documentation included with the redistribution,
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * if any, must include the following acknowledgment:
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * "This product includes software developed by the
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * Apache Software Foundation (http://www.apache.org/)."
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * Alternately, this acknowledgment may appear in the software itself,
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * if and wherever such third-party acknowledgments normally appear.
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * 4. The names "Apache" and "Apache Software Foundation" must
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * not be used to endorse or promote products derived from this
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * software without prior written permission. For written
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * permission, please contact apache@apache.org.
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * 5. Products derived from this software may not be called "Apache",
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * nor may "Apache" appear in their name, without prior written
64185f9824e42f21ca7b9ae6c004484215c031a7rbb * permission of the Apache Software Foundation.
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * SUCH DAMAGE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * ====================================================================
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding * This software consists of voluntary contributions made by many
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * individuals on behalf of the Apache Software Foundation. For more
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * information on the Apache Software Foundation, please see
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * Portions of this software are based upon public domain software
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * originally written at the National Center for Supercomputing Applications,
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding * University of Illinois, Urbana-Champaign.
3568de757bac0b47256647504c186d17ca272f85rbb/* Status Module. Display lots of internal data about how Apache is
3568de757bac0b47256647504c186d17ca272f85rbb * performing and the state of all children processes.
3568de757bac0b47256647504c186d17ca272f85rbb * To enable this, add the following lines into any config file:
3568de757bac0b47256647504c186d17ca272f85rbb * <Location /server-status>
3568de757bac0b47256647504c186d17ca272f85rbb * SetHandler server-status
3568de757bac0b47256647504c186d17ca272f85rbb * </Location>
3568de757bac0b47256647504c186d17ca272f85rbb * You may want to protect this location by password or domain so no one
3568de757bac0b47256647504c186d17ca272f85rbb * else can look at it. Then you can access the statistics with a URL like:
3568de757bac0b47256647504c186d17ca272f85rbb * /server-status - Returns page using tables
3568de757bac0b47256647504c186d17ca272f85rbb * /server-status?notable - Returns page for browsers without table support
3568de757bac0b47256647504c186d17ca272f85rbb * /server-status?refresh - Returns page with 1 second refresh
3568de757bac0b47256647504c186d17ca272f85rbb * /server-status?refresh=6 - Returns page with refresh every 6 seconds
3568de757bac0b47256647504c186d17ca272f85rbb * /server-status?auto - Returns page with data for automatic parsing
3568de757bac0b47256647504c186d17ca272f85rbb * Mark Cox, mark@ukweb.com, November 1995
3568de757bac0b47256647504c186d17ca272f85rbb * 12.11.95 Initial version for www.telescope.org
3568de757bac0b47256647504c186d17ca272f85rbb * 13.3.96 Updated to remove rprintf's [Mark]
3568de757bac0b47256647504c186d17ca272f85rbb * 18.3.96 Added CPU usage, process information, and tidied [Ben Laurie]
3568de757bac0b47256647504c186d17ca272f85rbb * 18.3.96 Make extra Scoreboard variables #definable
3568de757bac0b47256647504c186d17ca272f85rbb * 25.3.96 Make short report have full precision [Ben Laurie suggested]
3568de757bac0b47256647504c186d17ca272f85rbb * 25.3.96 Show uptime better [Mark/Ben Laurie]
3568de757bac0b47256647504c186d17ca272f85rbb * 29.3.96 Better HTML and explanation [Mark/Rob Hartill suggested]
3568de757bac0b47256647504c186d17ca272f85rbb * 09.4.96 Added message for non-STATUS compiled version
3568de757bac0b47256647504c186d17ca272f85rbb * 18.4.96 Added per child and per slot counters [Jim Jagielski]
3568de757bac0b47256647504c186d17ca272f85rbb * 01.5.96 Table format, cleanup, even more spiffy data [Chuck Murcko/Jim J.]
3568de757bac0b47256647504c186d17ca272f85rbb * 18.5.96 Adapted to use new rprintf() routine, incidentally fixing a missing
3568de757bac0b47256647504c186d17ca272f85rbb * piece in short reports [Ben Laurie]
3568de757bac0b47256647504c186d17ca272f85rbb * 21.5.96 Additional Status codes (DNS and LOGGING only enabled if
3568de757bac0b47256647504c186d17ca272f85rbb * extended STATUS is enabled) [George Burgyan/Jim J.]
3568de757bac0b47256647504c186d17ca272f85rbb * 10.8.98 Allow for extended status info at runtime (no more STATUS)
3568de757bac0b47256647504c186d17ca272f85rbb * [Jim J.]
3568de757bac0b47256647504c186d17ca272f85rbb#endif /* NEXT */
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#define DEFAULT_TIME_FORMAT "%A, %d-%b-%Y %H:%M:%S %Z"
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz * command-related code. This is here to prevent use of ExtendedStatus
3568de757bac0b47256647504c186d17ca272f85rbb * without status_module included.
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantzstatic const char *set_extended_status(cmd_parms *cmd, void *dummy, int arg)
3568de757bac0b47256647504c186d17ca272f85rbb const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
3568de757bac0b47256647504c186d17ca272f85rbb AP_INIT_FLAG("ExtendedStatus", set_extended_status, NULL, RSRC_CONF,
3568de757bac0b47256647504c186d17ca272f85rbb "\"On\" to enable extended status information, \"Off\" to disable"),
3568de757bac0b47256647504c186d17ca272f85rbb/* Format the number of bytes nicely */
41634f717c623556a16b27b25d7d909a66fe20f8wrowestatic void format_byte_out(request_rec *r, apr_off_t bytes)
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "%.1f kB", (float) bytes / KBYTE);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "%.1f MB", (float) bytes / MBYTE);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "%.1f GB", (float) bytes / GBYTE);
41634f717c623556a16b27b25d7d909a66fe20f8wrowestatic void format_kbyte_out(request_rec *r, apr_off_t kbytes)
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "%.1f MB", (float) kbytes / KBYTE);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "%.1f GB", (float) kbytes / MBYTE);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantzstatic void show_time(request_rec *r, apr_interval_time_t tsecs)
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, " %d day%s", days, days == 1 ? "" : "s");
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, " %d hour%s", hrs, hrs == 1 ? "" : "s");
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, " %d minute%s", mins, mins == 1 ? "" : "s");
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, " %d second%s", secs, secs == 1 ? "" : "s");
3568de757bac0b47256647504c186d17ca272f85rbb/* Main handler for x-httpd-status requests */
3568de757bac0b47256647504c186d17ca272f85rbb/* ID values for command table */
3568de757bac0b47256647504c186d17ca272f85rbb const char *form_data_str;
3568de757bac0b47256647504c186d17ca272f85rbb const char *hdr_out_str;
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantzstatic const struct stat_opt status_options[] = /* see #defines above */
3568de757bac0b47256647504c186d17ca272f85rbb const char *loc;
3568de757bac0b47256647504c186d17ca272f85rbb int j, i, res;
3568de757bac0b47256647504c186d17ca272f85rbb unsigned long count = 0;
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick pid_buffer = apr_palloc(r->pool, server_limit * sizeof(pid_t));
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick stat_buffer = apr_palloc(r->pool, server_limit * thread_limit * sizeof(char));
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard "Server status unavailable in inetd mode");
3568de757bac0b47256647504c186d17ca272f85rbb * Simple table-driven form data set parser that lets you alter the header
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard if (*(loc + strlen(status_options[i].form_data_str)) == '='
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz && atol(loc + strlen(status_options[i].form_data_str)
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick for (i = 0; i < server_limit; ++i) {
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick for (j = 0; j < thread_limit; ++j) {
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard else if (res != SERVER_DEAD && res != SERVER_IDLE_KILL)
5a0f707b48da7703cbe6bc087f13a6735b1c742dgregames /* XXX what about the counters for quiescing/seg faulted
5a0f707b48da7703cbe6bc087f13a6735b1c742dgregames * processes? should they be counted or not? GLA
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard if (lres != 0 || (res != SERVER_READY && res != SERVER_DEAD)) {
ad83978f20c7d1a4323059d9af122e56fcd353bdstoddard#endif /* HAVE_TIMES */
74fd6d9aeadb9022086259c5c1ae00bc0dda9c9astoddard /* up_time in seconds */
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard "<html><head>\n<title>Apache Status</title>\n</head><body>\n",
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rvputs(r, ap_get_server_name(r), "</h1>\n\n", NULL);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_get_server_built(), "\n</dt></dl><hr /><dl>\n", NULL);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_ht_time(r->pool, nowtime, DEFAULT_TIME_FORMAT, 0),
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "<dt>Parent Server Generation: %d</dt>\n",
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "Total Accesses: %lu\nTotal kBytes: %"
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz /* Allow for OS/2 not having CPU stats */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz else { /* !short_report */
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rprintf(r, "<dt>Total accesses: %lu - Total Traffic: ", count);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard /* Allow for OS/2 not having CPU stats */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz format_byte_out(r, (unsigned long)(KBYTE * (float) kbcount
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard / (float) up_time));
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz format_byte_out(r, (unsigned long)(KBYTE * (float) kbcount
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard / (float) count));
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz } /* short_report */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz } /* ap_extended_status */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rprintf(r, "<dt>%d requests currently being processed, "
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rprintf(r, "BusyWorkers: %d\nIdleWorkers: %d\n", busy, ready);
3568de757bac0b47256647504c186d17ca272f85rbb /* send the scoreboard 'table' out */
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick for (i = 0; i < server_limit; ++i) {
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick for (j = 0; j < thread_limit; ++j) {
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz if ((indx % STATUS_MAXLINE == (STATUS_MAXLINE - 1))
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>_</code></b>\" Waiting for Connection, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>S</code></b>\" Starting up, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>R</code></b>\" Reading Request,<br />\n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>W</code></b>\" Sending Reply, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>K</code></b>\" Keepalive (read), \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>D</code></b>\" DNS Lookup,<br />\n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>C</code></b>\" Closing connection, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>L</code></b>\" Logging, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>G</code></b>\" Gracefully finishing,<br /> \n", r);
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe ap_rputs("\"<b><code>I</code></b>\" Idle cleanup of worker, \n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard ap_rputs("\"<b><code>.</code></b>\" Open slot with no current process</p>\n", r);
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard for (i = 0; i < server_limit; ++i) {
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick for (j = 0; j < thread_limit; ++j) {
c0659e61002e9d6ff77b2dca72540e0af1b2ca64stoddard if (++k >= 3) {
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>Srv</th><th>PID</th><th>Acc</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>M</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>CPU\n</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>SS</th><th>Req</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>Conn</th><th>Child</th><th>Slot</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>Client</th><th>VHost</th>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<th>Request</th></tr>\n\n", r);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz for (i = 0; i < server_limit; ++i) {
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz for (j = 0; j < thread_limit; ++j) {
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<b>Server %d-%d</b> (-): %d|%lu|%lu [",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<b>Server %d-%d</b> (%"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "u%g s%g cu%g cs%g"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "\n %ld %ld (",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick " <i>%s {%s}</i> <b>[%s]</b><br />\n\n",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick else { /* !no_table_report */
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<tr><td><b>%d-%d</b></td><td>-</td><td>%d/%lu/%lu",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<tr><td><b>%d-%d</b></td><td>%"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "</td><td>%d/%lu/%lu",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<td>%.2f</td>"
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "<td>%ld</td><td>%ld",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick ap_rprintf(r, "</td><td>%-1.1f</td><td>%-2.2f</td><td>%-2.2f\n",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick (float)conn_bytes / KBYTE, (float) my_bytes / MBYTE,
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "</td><td>?</td><td nowrap>?</td><td nowrap>..reading.. </td></tr>\n\n");
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick "</td><td>%s</td><td nowrap>%s</td><td nowrap>%s</td></tr>\n\n",
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick } /* no_table_report */
2e7f1d7da527c09e717251e186deffe55e6fbd0ftrawick } /* for (j...) */
2e7f1d7da527c09e717251e186deffe55e6fbd0ftrawick } /* for (i...) */
3568de757bac0b47256647504c186d17ca272f85rbb<table>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Srv</th><td>Child Server number - generation</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>PID</th><td>OS process ID</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Acc</th><td>Number of accesses this connection / this child / this slot</td></tr>\n \
f886987cd0bd4220c14043c4d9be77ec22902e73trawick<tr><th>M</th><td>Mode of operation</td></tr>\n"
f886987cd0bd4220c14043c4d9be77ec22902e73trawick"<tr><th>CPU</th><td>CPU usage, number of seconds</td></tr>\n"
f886987cd0bd4220c14043c4d9be77ec22902e73trawick"<tr><th>SS</th><td>Seconds since beginning of most recent request</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Req</th><td>Milliseconds required to process most recent request</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Conn</th><td>Kilobytes transferred this connection</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Child</th><td>Megabytes transferred this child</td></tr>\n \
1ec8bd0373f11c07688ec9afbbf778cf78a0bc52wrowe<tr><th>Slot</th><td>Total megabytes transferred this slot</td></tr>\n \
3568de757bac0b47256647504c186d17ca272f85rbb</table>\n", r);
8bfe865d8d61be4ba4a89e45427a3c4211ebabdctrawick } /* if (ap_extended_status && !short_report) */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz ap_rputs("<hr />To obtain a full report with current status "
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz "information you need to use the "
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz "<code>ExtendedStatus On</code> directive.\n", r);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantzstatic int status_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz status_flags[SERVER_DEAD] = '.'; /* We don't want to assume these are in */
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz status_flags[SERVER_READY] = '_'; /* any particular order in scoreboard.h */
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &thread_limit);
cd8f8c995d415473f3bfb0b329b2450f2a722c3atrawick ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &server_limit);
b980ad7fdc218b4855cde9f75a747527f50c554dwrowe ap_hook_handler(status_handler, NULL, NULL, APR_HOOK_MIDDLE);
3568de757bac0b47256647504c186d17ca272f85rbb ap_hook_post_config(status_init, NULL, NULL, APR_HOOK_MIDDLE);
28c170ac8e99644de58cad454c6e0f9b4b359be6jerenkrantz NULL, /* dir merger --- default is to override */