Click to See Complete Forum and Search --> : Apache settings ?


Donovan
11-12-2000, 02:17 PM
Are these httpd.conf good settings for a dual p3 733-1gig ram web server ?:


MinSpareServers 5
MaxSpareServers 10

# Number of servers to start --- should be a reasonable ballpark figure.

StartServers 5

# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# Unix with it as it spirals down...

MaxClients 150

# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.
# The child will exit so as to avoid problems after prolonged use when
# Apache (and maybe the libraries it uses) leak. On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries.

MaxRequestsPerChild 30

Thanks,
Donov

klamath
11-12-2000, 03:37 PM
The only way to find out for sure is by benchmarking. Use 'ab' (it comes with Apache) or another tool to test performance.

What load is the server running? Is this for production or development? Is it running SSL, PHP, mod_perl, or other modules? What OS? What network connection? Are you connecting to a database? Is this machine running anything other than Apache? What version of Apache?

Just guessing:

MinSpareServers 5
MaxSpareServers 25
StartServers 100
MaxClients 1500
MaxRequestsPerChild 10000

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the BBB (http://bbb.sourceforge.net)

Donovan
11-12-2000, 03:44 PM
This is a production server, serving monstly PHP+mysql database. The os is Linux Debian with Apache 1.3.12 on a T1.

There is no load on the server still because i'm deveopping it (altough I would like to set it for a production environement).

Thanks,
Donov

klamath
11-12-2000, 06:54 PM
I would take a guess at the load you're going to be serving, and then setup a benchmark to simulate that.

You may want to consider moving MySQL to another box. Also, having 1 webserver doing static stuff only, and 1 doing PHP stuff would be good.

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the BBB (http://bbb.sourceforge.net)