httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Re: Help !!! Apache HTTP process consumes high memory usage
Date Fri, 14 May 2010 11:39:54 GMT

----- "Arunkumar Janarthanan" <arunkumar.webadmin@gmail.com> wrote:

> I could see its most of them from PHP and its components.
[snip]


> 
> On Fri, May 14, 2010 at 1:10 AM, Arunkumar Janarthanan <
> arunkumar.webadmin@gmail.com > wrote:
> 
> 
> Hi,
> 
> I have build an Apache instance 2.2.15 with prefork MPM and most of
> the modules as shared. I have PHP and MYSQL installed and configured
> on this machine (MYSQL client) with this every process created by
> Apache daemon consumes 280M memory almost for each call.
> 
> I am running on RHEL 5 with 5 Gig of memory when load increases on
> server it takes down the machine. Also I could see each library
> getting called thrice makes the HTTPD daemon heavy weight.
> 
> Please advice how could I trim down the memory consumption by each
> process.
> 
[snip]


Looking at my Fedora config, I see that the default MaxRequestsPerChild is 4000
which can be considered a pretty good value for running PHP.

That would've been my first shot (if on RHEL 5 that value is higher, or 0, consider
changing it: http://httpd.apache.org/docs/2.2/mpm.html )

Next off is that you should consider running PHP accelerated. See: http://pecl.php.net/APC

Also, your application is also a good candidate for memory consumption.
Take a look at my writeup on that topic: http://blag.esotericsystems.at/2010/01/php-memory-abuse/


> Best Regards,
> Arun J

So long,
-- 
Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message