Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EBB91072C for ; Mon, 20 Jan 2014 09:04:59 +0000 (UTC) Received: (qmail 65326 invoked by uid 500); 20 Jan 2014 09:04:57 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 65235 invoked by uid 500); 20 Jan 2014 09:04:56 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 65228 invoked by uid 99); 20 Jan 2014 09:04:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 09:04:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jan 2014 09:04:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 3E6D92388868; Mon, 20 Jan 2014 09:04:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1559651 - in /httpd/httpd/trunk/docs/manual: developer/lua.html.en misc/perf-scaling.html.en Date: Mon, 20 Jan 2014 09:04:31 -0000 To: cvs@httpd.apache.org From: nd@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140120090431.3E6D92388868@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: nd Date: Mon Jan 20 09:04:30 2014 New Revision: 1559651 URL: http://svn.apache.org/r1559651 Log: update transformation Modified: httpd/httpd/trunk/docs/manual/developer/lua.html.en httpd/httpd/trunk/docs/manual/misc/perf-scaling.html.en Modified: httpd/httpd/trunk/docs/manual/developer/lua.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/developer/lua.html.en?rev=1559651&r1=1559650&r2=1559651&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/developer/lua.html.en (original) +++ httpd/httpd/trunk/docs/manual/developer/lua.html.en Mon Jan 20 09:04:30 2014 @@ -542,9 +542,9 @@ LuaHookTranslateName /path/to/script.lua ]]-- local backends = { - “http://backend1.foo.com/“, - “http://backend2.foo.com/“, - “http://backend3.foo.com/“ + "http://backend1.foo.com/", + "http://backend2.foo.com/", + "http://backend3.foo.com/" } function pick_backend(r) Modified: httpd/httpd/trunk/docs/manual/misc/perf-scaling.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/misc/perf-scaling.html.en?rev=1559651&r1=1559650&r2=1559651&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/misc/perf-scaling.html.en (original) +++ httpd/httpd/trunk/docs/manual/misc/perf-scaling.html.en Mon Jan 20 09:04:30 2014 @@ -30,12 +30,12 @@

The Performance Tuning page in the Apache 1.3 documentation says:

- “Apache is a general webserver, which is designed to be + "Apache is a general webserver, which is designed to be correct first, and fast second. Even so, its performance is quite satisfactory. Most sites have less than 10Mbits of outgoing bandwidth, which Apache can fill using only a low end Pentium-based - webserver.”

+ webserver."

However, this sentence was written a few years ago, and in the meantime several things have happened. On one hand, web server @@ -153,7 +153,7 @@ Swap: 4194296k total, 860584k used, 69 root 15 -5 0 0 0 S 0 0.0 0:00.04 kblockd/1 70 root 15 -5 0 0 0 S 0 0.0 0:00.04 kblockd/2 -

Top is a wonderful tool even though it’s slightly resource +

Top is a wonderful tool even though it's slightly resource intensive (when running, its own process is usually in the top ten CPU gluttons). It is indispensable in determining the size of a running process, which comes in handy when @@ -337,7 +337,7 @@ Swap: 3903784 12540 3891244

The Error Log is configured through the ErrorLog and LogLevel - configuration directives. The error log of httpd’s main + configuration directives. The error log of httpd's main server configuration receives the log messages that pertain to the entire server: startup, shutdown, crashes, excessive process spawns, etc. The ErrorLog @@ -604,7 +604,7 @@ Swap: 3903784 12540 3891244 APACHE=/usr/local/apache2
HTTPD=$APACHE/bin/httpd
mv $APACHE/logs/access_log - $APACHE/logarchive/access_log-‘date +%F‘
+ $APACHE/logarchive/access_log-`date +%F`
$HTTPD -k graceful

@@ -676,8 +676,8 @@ Swap: 3903784 12540 3891244 server has many virtual hosts, all the open logfiles put a resource burden on your system, and it may be preferable to log to a single file. Use the %v - format character at the start of your LogFormat - and starting 2.3.8 of your ErrorLog + format character at the start of your LogFormat + and starting 2.3.8 of your ErrorLog to make httpd print the hostname of the virtual host that received the request or the error at the beginning of each log line. A simple Perl script can split out the log file @@ -700,7 +700,7 @@ Swap: 3903784 12540 3891244

It is useful to generate a test load to monitor system performance under realistic operating circumstances. Besides - commercial packages such as LoadRunner + commercial packages such as LoadRunner ,there are a number of freely available tools to generate a test load against your web server.

@@ -727,13 +727,13 @@ Swap: 3903784 12540 3891244
  • ASF external projects, that have proven to be quite - good: grinder, httperf, tsung, FunkLoad + good: grinder, httperf, tsung, FunkLoad

  • When you load-test your web server, please keep in mind that if that server is in production, the test load may negatively - affect the server’s response. Also, any data traffic you + affect the server's response. Also, any data traffic you generate may be charged against your monthly traffic allowance.

    @@ -762,8 +762,8 @@ Swap: 3903784 12540 3891244 MPM runs a smaller number of child processes, and spawns multiple request handling threads within each child process. In 2.4 MPMs are no longer hard-wired. They too can be exchanged - via LoadModule. - The default MPM in 2.4 is the event MPM. + via LoadModule. + The default MPM in 2.4 is the event MPM.

    The maximum number of workers, be they pre-forked child processes or threads within a process, is an indication of how @@ -775,7 +775,7 @@ Swap: 3903784 12540 3891244 denied access. However, once requests start backing up, system performance is likely to degrade.

    -

    Finally, if the httpd server in question is not executing any third-party +

    Finally, if the httpd server in question is not executing any third-party code, via mod_php, mod_perl or similar, we recommend the use of mpm_event. This MPM is ideal for situations where httpd serves as a thin layer between clients and @@ -818,7 +818,7 @@ Swap: 3903784 12540 3891244 is evenly divisible by ThreadsPerChild - .If you set either directive to a number that doesn’t + .If you set either directive to a number that doesn't meet this requirement, Apache will send a message of complaint to the error log and adjust the ThreadsPerChild @@ -843,7 +843,7 @@ Swap: 3903784 12540 3891244

    - total RAM − RAM for OS − RAM for external programs
    + total RAM - RAM for OS - RAM for external programs
    MaxClients = -------------------------------------------------------
    RAM per httpd process @@ -881,8 +881,8 @@ Swap: 3903784 12540 3891244 value. The Linux kernel will put extra memory to good use for caching disk access. On Solaris you need enough available real RAM memory to create any process. If no real - memory is available, httpd will start writing ‘No space - left on device’ messages to the error log and be unable + memory is available, httpd will start writing 'No space + left on device' messages to the error log and be unable to fork additional child processes, so a higher MaxClients @@ -1214,7 +1214,7 @@ Swap: 3903784 12540 3891244 their functionality and configuration directives, you can turn them off by commenting out the corresponding LoadModule - lines. Read the documentation on each module’s + lines. Read the documentation on each module's functionality before deciding whether to keep it enabled. While the performance overhead of an unused module is small, it's also unnecessary. @@ -1287,7 +1287,7 @@ Swap: 3903784 12540 3891244

    This can be run periodically from Cron, after you upload content, etc. To make Apache substitute the statically - rendered pages for the dynamic content, we’ll use + rendered pages for the dynamic content, we'll use mod_rewrite. This module is included with the Apache source code, but is not compiled by default. It can be built with the server by passing the option --enable-rewrite[=shared] @@ -1388,7 +1388,7 @@ Listen *:8001

    The Apache Software Foundation Wiki is served by MoinMoin. - MoinMoin is written in Python and runs as a CGI. To date, any + MoinMoin is written in Python and runs as a CGI. To date, any attempts to run it under mod_python has been unsuccessful. The CGI proved to place an untenably high load on the server machine, especially when the Wiki was being indexed