RE: [users@httpd] Re: Why does each Apache child process consume 5 MB of RAM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: dtufs [mailto:dtufs@xxxxxxxxx]
> Sent: Donnerstag, 28. Juli 2005 11:13
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] Re: Why does each Apache child process 
> consume 5
> MB of RAM?
> 
> 
> The Apache server runs on Debian 3.1 (latest stable),
> 2.4.x kernel.
> 
> The following modules are loaded:
> 
> mod_php4.c, mod_ssl.c, mod_setenvif.c, mod_expires.c,
> mod_auth.c, mod_access.c, mod_rewrite.c, mod_alias.c,
> mod_cgi.c, mod_dir.c, mod_autoindex.c, mod_info.c,
> mod_status.c, mod_negotiation.c, mod_mime.c,
> mod_mime_magic.c, mod_log_config.c, mod_chroot.c,
> mod_macro.c, mod_so.c, http_core.c
> 
> I'm not sure if all are needed. MySQL is needed
> because of our forum (phpbb).
> 
> We really need to reduce it from 5MB to 1.5 MB or
> less. Any help will be greatly appreciated. Thanks.

I'm really intrigued as to why you have this limitation. Any cheap starter PC these days comes with 512 MB memory as a minimum. That's plenty for apache - you'll be bandwidth or cpu limited before you run out of memory.

Assuming you have a compelling reason to squash apache, do you understand *why* it occupies the memory footprint that it does? Compilation converts the source code into machine code and this occupies memory, that's how programs work. Depending on the amount of code included in your compilation, there will be an irreducible amount of machine code produced. You can't dictate a priori how much memory you want a binary to occupy, rather, it is a consequence of the functionality of the binary.

You can't pour a quart into a pint pot, or whatever...

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

> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Helps protect you from nasty viruses. 
> http://promotions.yahoo.com/new_mail
>
 
 
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux