perf.html revision 3b6d295d5832da901e63578b9feb3451f9ade6c5
688N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
1064N/A<html>
688N/A<head>
688N/A<title>Hints on Running a High-Performance Web Server</title>
919N/A</head>
919N/A
919N/A<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
919N/A<BODY
919N/A BGCOLOR="#FFFFFF"
919N/A TEXT="#000000"
919N/A LINK="#0000FF"
919N/A VLINK="#000080"
919N/A ALINK="#FF0000"
919N/A>
919N/A<!--#include virtual="header.html" -->
919N/A<h1 ALIGN="CENTER">Hints on Running a High-Performance Web Server</H1>
919N/A
919N/ARunning Apache on a heavily loaded web server, one often encounters
919N/Aproblems related to the machine and OS configuration. "Heavy" is
919N/Arelative, of course - but if you are seeing more than a couple hits
919N/Aper second on a sustained basis you should consult the pointers on
688N/Athis page. In general the suggestions involve how to tune your kernel
688N/Afor the heavier TCP load, hardware/software conflicts that arise, etc.
1549N/A
1549N/A<UL>
1549N/A<LI><A HREF="#AUX">A/UX (Apple's UNIX)</A>
1112N/A<LI><A HREF="#BSD">BSD-based (BSDI, FreeBSD, etc)</A>
1112N/A<LI><A HREF="#DEC">Digital UNIX</A>
1112N/A<LI><A HREF="perf-hp.html">HPUX</A>
1112N/A<LI><A HREF="#Linux">Linux</A>
1112N/A<LI><A HREF="#SGI">SGI</A>
1112N/A<LI><A HREF="#Solaris">Solaris</A>
1549N/A<LI><A HREF="#SunOS">SunOS 4.x</A>
1549N/A</UL>
1549N/A
1549N/A<HR>
1549N/A
1549N/A<H3><A NAME="AUX">
1549N/AA/UX (Apple's UNIX)
1549N/A</A></H3>
1549N/A
1549N/AIf you are running Apache on A/UX, a page that gives some helpful
688N/Aperformance hints (concerning the <I>listen()</I> queue and using
688N/Avirtual hosts)
1549N/A<A HREF="http://www.jaguNET.com/apache.html">can be found here</A>
1549N/A
1549N/A<P><HR>
688N/A
688N/A<H3><A NAME="BSD">
1549N/ABSD-based (BSDI, FreeBSD, etc)
1549N/A</A></H3>
1549N/A
1549N/A<A HREF="perf-bsd44.html#initial">Quick</A> and
688N/A<A HREF="perf-bsd44.html#detail">detailed</A>
688N/Aperformance tuning hints for BSD-derived systems.
688N/A
688N/A<P><HR>
688N/A
688N/A<H3><A NAME="DEC">
1549N/ADigital UNIX
688N/A</A></H3>
688N/A
1549N/A<UL>
688N/A <LI><A
1549N/A HREF="http://www.digital.com/info/internet/document/ias/tuning.html"
1549N/A >DIGITAL UNIX Tuning Parameters for Web Servers</A>
1549N/A <LI>We have some <A HREF="perf-dec.html">newsgroup postings</A> on how
1549N/A to tune Digital UNIX 3.2 and 4.0.
688N/A</UL>
688N/A
688N/A<P><HR>
986N/A
986N/A<H3><A NAME="Linux">
688N/ALinux
688N/A</A></H3>
688N/A
1549N/AThe most common problem on Linux shows up on heavily-loaded systems
1549N/Awhere the whole server will appear to freeze for a couple of minutes
1549N/Aat a time, and then come back to life. This has been traced to a
1549N/Alisten() queue overload - certain Linux implementations have a low
1549N/Avalue set for the incoming connection queue which can cause problems.
1549N/APlease see our <a
1549N/Ahref="http://www.qosina.com/~awm/apache/linux-tcp.html">Using Apache on
1549N/ALinux</a> page for more info on how to fix this.
688N/A
688N/A<P><HR>
1549N/A
1549N/A<H3><A NAME="SGI">
688N/ASGI
688N/A</A></H3>
688N/A
688N/A<UL>
688N/A<LI><A HREF="http://www.sgi.com/Products/WebFORCE/Resources/res_TuningGuide.html">
688N/AWebFORCE Web Server Tuning Guidelines for IRIX 5.3,
688N/A&lt;http://www.sgi.com/Products/WebFORCE/Resources/res_TuningGuide.html&gt;</A>
688N/A<li><a href="perf-tuning.html#serialize">Performance Tuning -- accept_mutex</a>
688N/A</UL>
1549N/A
1549N/A<P><HR>
688N/A
688N/A<H3><A NAME="Solaris">
688N/ASolaris 2.4
688N/A</A></H3>
688N/A
688N/AThe Solaris 2.4 TCP implementation has a few inherent limitations that
688N/Aonly became apparent under heavy loads. This has been fixed to some
688N/Aextent in 2.5 (and completely revamped in 2.6), but for now consult
688N/Athe following URL for tips on how to expand the capabilities if you
1549N/Aare finding slowdowns and lags are hurting performance.
1549N/A
1549N/A<P>
688N/A
688N/AOther links:
688N/A
688N/A<UL>
688N/A
688N/A<LI><A href="http://www.sun.com/sun-on-net/performance.html">
688N/AWorld Wide Web Server Performance,
1549N/A&lt;http://www.sun.com/sun-on-net/performance.html&gt;</a>
688N/A</UL>
688N/A
688N/A<P><HR>
688N/A
1549N/A<H3><A NAME="SunOS">
688N/ASunOS 4.x
688N/A</A></H3>
1549N/A
688N/AMore information on tuning SOMAXCONN on SunOS can be found at
688N/A<A HREF="http://www.islandnet.com/~mark/somaxconn.html">
1549N/Ahttp://www.islandnet.com/~mark/somaxconn.html</A>.
688N/A
688N/A<P><HR>
1549N/A
688N/A<H3>More welcome!</H3>
688N/A
688N/AIf you have tips to contribute, send mail to <a
688N/Ahref="mailto:brian@organic.com">brian@organic.com</a>
1549N/A
1549N/A<!--#include virtual="footer.html" -->
688N/A</body></html>
688N/A
688N/A