perf.html revision 25503838e438bb909e3ff880125732c7ed5e64ad
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<TITLE>Hints on Running a High-Performance Web Server</TITLE>
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd BGCOLOR="#FFFFFF"
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd TEXT="#000000"
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen LINK="#0000FF"
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen VLINK="#000080"
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen ALINK="#FF0000"
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<!--#include virtual="header.html" -->
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<H1 ALIGN="CENTER">Hints on Running a High-Performance Web Server</H1>
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowenRunning Apache on a heavily loaded web server, one often encounters
3f08db06526d6901aa08c110b5bc7dde6bc39905ndproblems related to the machine and OS configuration. "Heavy" is
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndrelative, of course - but if you are seeing more than a couple hits
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndper second on a sustained basis you should consult the pointers on
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndthis page. In general the suggestions involve how to tune your kernel
3f08db06526d6901aa08c110b5bc7dde6bc39905ndfor the heavier TCP load, hardware/software conflicts that arise, etc.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndIf you are running Apache on A/UX, a page that gives some helpful
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndperformance hints (concerning the <EM>listen()</EM> queue and using
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndvirtual hosts)
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<A HREF="http://www.jaguNET.com/apache.html">can be found here</A>
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndBSD-based (BSDI, FreeBSD, etc)
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunperformance tuning hints for BSD-derived systems.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndDigital UNIX
1462ff536f1b939bb337766b2056109c29664c4erbowen HREF="http://www.digital.com/info/internet/document/ias/tuning.html"
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd >DIGITAL UNIX Tuning Parameters for Web Servers</A>
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun <LI>We have some <A HREF="perf-dec.html">newsgroup postings</A> on how
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd to tune Digital UNIX 3.2 and 4.0.
2704de98885368683621b01c8f8f4e4b01557611takashiThe most common problem on Linux shows up on heavily-loaded systems
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndwhere the whole server will appear to freeze for a couple of minutes
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndat a time, and then come back to life. This has been traced to a
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndlisten() queue overload - certain Linux implementations have a low
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndvalue set for the incoming connection queue which can cause problems.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndPlease see our <A
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndHREF="http://www.qosina.com/~awm/apache/linux-tcp.html">Using Apache on
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndLinux</A> page for more info on how to fix this.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndSolaris 2.4
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndThe Solaris 2.4 TCP implementation has a few inherent limitations that
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndonly became apparent under heavy loads. This has been fixed to some
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndextent in 2.5 (and completely revamped in 2.6), but for now consult
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndthe following URL for tips on how to expand the capabilities if you
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndare finding slowdowns and lags are hurting performance.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndOther links:
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<LI><A HREF="http://www.sun.com/sun-on-net/performance.html">
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndWorld Wide Web Server Performance,
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<http://www.sun.com/sun-on-net/performance.html></A>
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd<LI><A HREF="http://www.rvs.uni-hannover.de/people/voeckler/tune/EN/tune.html">
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndSolaris 2.x - tuning your TCP/IP stack</A> contains some good technical
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndinformation about tuning various Solaris TCP/IP parameters.
e609c337f729875bc20e01096c7e610f45356f54nilgunMore information on tuning SOMAXCONN on SunOS can be found at
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunIf you have tips to contribute, send mail to <A
1462ff536f1b939bb337766b2056109c29664c4erbowen<!--#include virtual="footer.html" -->