Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Aug 2000 15:48:50 -0500 (CDT)
From:      BWS - Offwhite <brennan@offwhite.net>
To:        "James E. Pace" <jepace@pobox.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Scaling Apache?
Message-ID:  <Pine.BSF.4.21.0008281540370.33533-100000@home.offwhite.net>
In-Reply-To: <Pine.BSF.4.21.0008281245250.537-100000@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Oh, if that is the case...

There is one master option which may help you out.  It is "maxusers" and
it is in the kernel config file.  You can find the example file here
assuming you have the source tree on your machine.

/usr/src/sys/i386/conf/LINT

Here is the comment above that option.

# The `maxusers' parameter controls the static sizing of a number of
# internal system tables by a complicated formula defined in param.c.

I do not think I would recommend running 2000 apache processes or any
processes on your machine as it seems to be a very large number of
processes.  Maybe 200 or 500, but 2000 is a bit high.  For that you may
want at least 2gigs of RAM and either a dual or quad processor system, if
not a whole cluster.

Consider the following with running so many apache processes:

If apache does serve up a single page, about 5k and then a logo on it at
about 45k and you did use up 2000 processes to feed this content I know
apache will try to cache those documents in memory for each child.  That
is kinda scary given that 50k * 2000 is going to take up a great deal of
RAM.  I am not sure what content you are serving, but the memory/swap
space caching can become unwieldy with so many children processes running.

Anyone have thoughts on this?  I know the apache developers are working on
a threaded apache may improve this memory usage issue, but that is not
even in beta yet.  I still prefer to have a series of children which can
die or crash independently and still not take down the whole web server.

Brennan Stehling - web developer and sys admin
projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com

On Mon, 28 Aug 2000, James E. Pace wrote:

> Thanks for the good discussion.
> 
> Fortunately, my needs are not for a live site, but for testing a web
> accelerator, so real world applicability isn't crucial, yet.
> 
> My question then is, given that I want 2000 apaches running, how do I
> tune the OS and apache to make this happen?
> 
> Thanks,
> 
> James
> 
> This letter brought to you by: *************************************
> **                              James E. Pace <jepace@pobox.com>  **
> **                              http://www.pobox.com/~jepace      **
> ********************************************************************
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008281540370.33533-100000>