Apache 2 on FreeBSD 5.3

Claus Guttesen cguttesen at yahoo.dk
Fri Feb 4 02:32:12 PST 2005


> On a FreeBSD 5.3 web server with a very high load, I
> recently switched
> from Apache 1.3 and PHP 4.3 to using 2.0 with the
> prefork MPM and PHP 5.
> I noticed a drop in perfomance. What is currently
> the best (in terms of
> performance) choice for Apache w/ PHP on FreeBSD?
> Which MPM should I
> use? Does worker MPM use KSE on FreeBSD 5 and does
> it perform better
> than prefork? What about perchild and threadpool? Or
> maybe I should go
> back to Apache 1.3? Are there any sysctl or kernel
> tunings that I should
> use?

It is not recommend to use apache 2 with PHP. That's
at least what the folks at php says. We use 1.3 and
are satisfied with the performance.

Have you tried to set the following in
/usr/local/etc/apache/httpd.conf?

KeepAlive Off
MaxClients (size of one process) / (avail. RAM)

regards
Claus



More information about the freebsd-performance mailing list