*BSD News Article 83125


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!www.nntp.primenet.com!nntp.primenet.com!news.cais.net!in1.nntp.cais.net!gabby.ShireNet.com!bilbo.ShireNet.com!larry
From: larry@bilbo.ShireNet.com (Larry Himes)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.bsd.bsdi.misc
Subject: Re: Tuning BSD as Web Server (was Re: Unix too slow for a Web server?)
Followup-To: comp.unix.bsd.freebsd.misc,comp.unix.bsd.bsdi.misc
Date: 18 Nov 1996 12:06:40 GMT
Organization: ShireNet Communications Systems, Inc.
Lines: 43
Message-ID: <56pjgh$g1j@frodo.ShireNet.com>
NNTP-Posting-Host: bilbo.shirenet.com
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:31204 comp.unix.bsd.bsdi.misc:5296

Giao Nguyen (grail@cray-ymp.acm.stuorg.vt.edu) wrote:
: In comp.unix.bsd.freebsd.misc J Wunsch <j@uriah.heep.sax.de> wrote:
: : Ken Bigelow <kbigelow@www.play-hookey.com> wrote:

: : > > Funny that people believe this apache-PR. Most servers run in "forking
: : > > mode" to hide bugs. On large sites the "idle httpd servers" cost you
: : > > additional 32MB of memory without any advantage.

: : > Hmmm. Since Apache is reliable (and it has been very much so, for me),
: : > that would seem to imply no need to hide bunches of bugs. I also
: : > seriously wonder about your '32 MB' figure -- by default, [...]
: : > Since my server only *has* 32 MB of RAM (and isn't all that
: : > busy, yet), and top still reports plenty of unused memory available even
: : > while hits are taking place, that figure cannot be a fixed number.

: : Well, to second this, my machine at work is also running Apache with

: Well, the 32MB figure is *very* interesting. I'm running apache, along
: with a primary nameserver, ftp server, and use it as my own personal machine
: and I've never had this memory problem. About a weekend or two ago,
: I was working on  a project with a closing due date. Just out of curiousity
: I checked up on the apache access logs. It was showing close to 2000+ hits
: in that one day alone. Apparently everyone in my class was checking out
: the wxWindows materials at my site.

: In any case, I couldn't tell any performance problems with 12-16 preforked
: apache servers and my debug/development work.

Here's an excerpt from 'top' from one of our servers just now:

21531 nobody     2    0  500K  384K sleep   0:00  0.00%  0.00% httpd
21560 nobody     2    0  500K  376K sleep   0:00  0.00%  0.00% httpd
21561 nobody     2    0  496K  376K sleep   0:00  0.00%  0.00% httpd
21563 nobody     2    0  496K  376K sleep   0:00  0.00%  0.00% httpd
21487 nobody     2    0  496K  372K sleep   0:00  0.00%  0.00% httpd
21578 nobody     2    0  484K  372K sleep   0:00  0.00%  0.00% httpd
21592 nobody     2    0  484K  364K sleep   0:00  0.00%  0.00% httpd


As you can see, the 7 pre-forked Apache servers don't take up all
that much memory. And the master process (not shown) takes even less.

Larry Himes.