httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Why does each Apache child process consume 5 MB of RAM?
Date Thu, 28 Jul 2005 06:48:39 GMT
> -----Original Message-----
> From: dtufs [mailto:dtufs@yahoo.com]
> Sent: Mittwoch, 27. Juli 2005 16:01
> To: users@httpd.apache.org
> Subject: [users@httpd] Why does each Apache child process consume 5 MB
> of RAM?
> 
> 
> Hello,
> We are running Apache 1.3.33, PHP 4.3 and MySQL 4.1
> and noticed that each Apache child process takes 5 MB
> of RAM as soon as it is started (i.e. 5 MB per
> connection).
> 
> Why is that?

Err... because that's how many bytes the executable takes up. There's the apache core plus
any modules you have compiled in. As Jon suggests, you can cut out any modules you don't need
and also strip the binary to remove any compiled in lib functions. But at the end of all that,
apache is a fairly complicated program and it takes some space to contain it all.

Why are you worried about it? As a rough guide, give about a third of your memory to apache,
so:

MaxClients = (machine_memory / 3) / httpd_footprint

so if you have 512 MB in your machine and a 5MB footprint, MaxClients should be 30-35.

If this isn't enough to serve your site then you don't have a big enough machine for the traffic
- you can't run a bus service with a VW Golf.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> What can we do to reduce that to 1 MB or
> less. 
> 
> Thanks in advance.
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Find what you need with new enhanced search. 
> http://info.mail.yahoo.com/mail_250
> 
> ---------------------------------------------------------------------
> 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
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen-
bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature.
It is not related to the exchange or business activities of the SWX Group. Le présent e-mail
est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.
 
 
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

---------------------------------------------------------------------
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