Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 12:58:33 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Grant <freebsdlists@thingysrealm.myftp.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Small HTTPD + PHP4
Message-ID:  <42C181B9.602@mac.com>
In-Reply-To: <20050628103028.6c87d666@anubis>
References:  <20050628021524.7ba2df56@anubis> <42C0ADC8.1060204@mac.com> <20050628103028.6c87d666@anubis>

next in thread | previous in thread | raw e-mail | index | archive | help
Grant wrote:
> On Mon, 27 Jun 2005 21:54:16 -0400
> Chuck Swiger <cswiger@mac.com> wrote:
[ ... ]
> The only reason i'm moving from apache is that apache has started (well
> proberly did but i didnt notice) eating large amounts of ram, even when
> idle, as i type this there is 4 apache processes using 29mb each, now
> when there is a few people on my forum/site that goes up to around
> 12processes again all using 29mb which adds up to being quite a big
> chunck of my ram. (384mb just for apache).

Sounds about right.  If you run Apache without enabling PHP, you'll discover 
that each httpd takes around 5MB per process, less than 20% of the size you are 
seeing.

> So i either want to get php working on a smaller httpd or maybe fix
> apache.

You don't seem to understand the problem: it has nothing to do with apache.

If you try to get PHP working on a smaller httpd, you will end up with an httpd 
(or the equivalent in external fast-cgi processes) that uses lots of resources, 
because PHP itself uses lots of resources.

PHP and small/lightweight doesn't happen.  PHP is bulky, slow, inefficient, and 
has a security record which resembles that of Windows or sendmail.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C181B9.602>