From 43f16c4eef3abef48afe859a8232b59509392f74 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Andr=C3=A9=20Malo?= 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.”
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, 3333712k free, 1157552k cached 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
%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 3891244ASF 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 - viaLoadModule
.
- 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
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
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
--
2.40.0
- 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
--enable-rewrite[=shared]
@@ -1388,7 +1388,7 @@ Listen *:8001