]> granicus.if.org Git - apache/blob - docs/manual/platform/perf.html
Online docs appearance rework: pass 1, phase 2 - the
[apache] / docs / manual / platform / perf.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <html>
3 <head>
4 <title>Hints on Running a High-Performance Web Server</title>
5 </head>
6
7 <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
8 <BODY
9  BGCOLOR="#FFFFFF"
10  TEXT="#000000"
11  LINK="#0000FF"
12  VLINK="#000080"
13  ALINK="#FF0000"
14 >
15 <!--#include virtual="header.html" -->
16 <h1 ALIGN="CENTER">Hints on Running a High-Performance Web Server</H1>
17
18 Running Apache on a heavily loaded web server, one often encounters
19 problems related to the machine and OS configuration.  "Heavy" is
20 relative, of course - but if you are seeing more than a couple hits
21 per second on a sustained basis you should consult the pointers on
22 this page.  In general the suggestions involve how to tune your kernel
23 for the heavier TCP load, hardware/software conflicts that arise, etc.
24
25 <UL>
26 <LI><A HREF="#AUX">A/UX (Apple's UNIX)</A>
27 <LI><A HREF="#BSD">BSD-based (BSDI, FreeBSD, etc)</A>
28 <LI><A HREF="#DEC">Digital UNIX</A>
29 <LI><A HREF="#HP">Hewlett-Packard</A>
30 <LI><A HREF="#Linux">Linux</A>
31 <LI><A HREF="#SGI">SGI</A>
32 <LI><A HREF="#Solaris">Solaris</A>
33 <LI><A HREF="#SunOS">SunOS 4.x</A>
34 </UL>
35
36 <HR>
37
38 <H3><A NAME="AUX">
39 A/UX (Apple's UNIX)
40 </A></H3>
41
42 If you are running Apache on A/UX, a page that gives some helpful
43 performance hints (concerning the <I>listen()</I> queue and using
44 virtual hosts)
45 <A HREF="http://www.jaguNET.com/apache.html">can be found here</A>
46
47 <P><HR>
48
49 <H3><A NAME="BSD">
50 BSD-based (BSDI, FreeBSD, etc)
51 </A></H3>
52
53 <A HREF="perf-bsd44.html#initial">Quick</A> and
54 <A HREF="perf-bsd44.html#detail">detailed</A>
55 performance tuning hints for BSD-derived systems.
56
57 <P><HR>
58
59 <H3><A NAME="DEC">
60 Digital UNIX
61 </A></H3>
62
63 <UL> 
64   <LI><A HREF="http://www.digital.com/info/internet/document/ias/tuning.html">DIGITAL
65         UNIX Tuning Parameters for Web Servers</A> 
66   <LI>We have some <A HREF="perf-dec.html">newsgroup postings</A> on how to tune 
67         Digital UNIX 3.2 and 4.0. 
68 </UL>
69
70 <P><HR>
71
72 <H3><A NAME="HP">
73 Hewlett-Packard
74 </A></H3>
75
76 Some documentation on tuning HP machines can be found at <A
77 HREF="http://www.software.hp.com/internet/perf/tuning.html">http://www.software.hp.com/internet/perf/tuning.html</A>.
78
79 <P><HR>
80
81 <H3><A NAME="Linux">
82 Linux
83 </A></H3>
84
85 The most common problem on Linux shows up on heavily-loaded systems
86 where the whole server will appear to freeze for a couple of minutes
87 at a time, and then come back to life.  This has been traced to a
88 listen() queue overload - certain Linux implementations have a low
89 value set for the incoming connection queue which can cause problems.
90 Please see our <a
91 href="http://www.qosina.com/~awm/apache/linux-tcp.html">Using Apache on
92 Linux</a> page for more info on how to fix this.
93
94 <P><HR>
95
96 <H3><A NAME="SGI">
97 SGI
98 </A></H3>
99
100 <UL>
101 <LI><A HREF="http://www.sgi.com/Products/WebFORCE/Resources/res_TuningGuide.html">
102 WebFORCE Web Server Tuning Guidelines for IRIX 5.3,
103 &lt;http://www.sgi.com/Products/WebFORCE/Resources/res_TuningGuide.html&gt;</A>
104 </UL>
105
106 <P><HR>
107
108 <H3><A NAME="Solaris">
109 Solaris 2.4
110 </A></H3>
111
112 The Solaris 2.4 TCP implementation has a few inherent limitations that
113 only became apparent under heavy loads.  This has been fixed to some
114 extent in 2.5 (and completely revamped in 2.6), but for now consult
115 the following URL for tips on how to expand the capabilities if you
116 are finding slowdowns and lags are hurting performance.
117
118 <UL>
119
120 <LI><A href="http://www.sun.com/sun-on-net/Sun.Internet.Solutions/performance/">
121 World Wide Web Server Performance, 
122 &lt;http://www.sun.com/sun-on-net/Sun.Internet.Solutions/performance/&gt;</a>
123 <LI><A HREF="http://www.sun.com/solaris/products/siss/">
124 Solaris Internet Server Supplement for 2.5.1</A>
125 </UL>
126
127 <P><HR>
128
129 <H3><A NAME="SunOS">
130 SunOS 4.x
131 </A></H3>
132
133 More information on tuning SOMAXCONN on SunOS can be found at 
134 <A HREF="http://www.islandnet.com/~mark/somaxconn.html">
135 http://www.islandnet.com/~mark/somaxconn.html</A>.  
136
137 <P><HR>
138
139 <H3>More welcome!</H3>
140
141 If you have tips to contribute, send mail to <a
142 href="mailto:brian@organic.com">brian@organic.com</a>
143
144 <!--#include virtual="footer.html" -->
145 </body></html>
146