1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
4 <title>Hints on Running a High-Performance Web Server</title>
7 <!-- Background white, links blue (unvisited), navy (visited), red (active) -->
15 <!--#include virtual="header.html" -->
16 <h1 ALIGN="CENTER">Hints on Running a High-Performance Web Server</H1>
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.
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>
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
45 <A HREF="http://www.jaguNET.com/apache.html">can be found here</A>
50 BSD-based (BSDI, FreeBSD, etc)
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.
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.
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>.
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.
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.
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 <http://www.sgi.com/Products/WebFORCE/Resources/res_TuningGuide.html></A>
108 <H3><A NAME="Solaris">
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.
120 <LI><A href="http://www.sun.com/sun-on-net/Sun.Internet.Solutions/performance/">
121 World Wide Web Server Performance,
122 <http://www.sun.com/sun-on-net/Sun.Internet.Solutions/performance/></a>
123 <LI><A HREF="http://www.sun.com/solaris/products/siss/">
124 Solaris Internet Server Supplement for 2.5.1</A>
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>.
139 <H3>More welcome!</H3>
141 If you have tips to contribute, send mail to <a
142 href="mailto:brian@organic.com">brian@organic.com</a>
144 <!--#include virtual="footer.html" -->