You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by dtufs <dt...@yahoo.com> on 2005/07/28 11:12:50 UTC

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


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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

Posted by "Dan Mahoney, System Admin" <da...@prime.gushi.org>.
On Thu, 28 Jul 2005, dtufs wrote:

> The Apache server runs on Debian 3.1 (latest stable),
> 2.4.x kernel.

Okay, so first, remove all the modules (if they're being dynamically 
loaded) and see how much ram each child uses.  If it's not <1.5 megs, stop 
there and try a different webserver (or compile with less compiled in 
statically).

Second, go to www.apache.org, look up the directives for each module you 
have running, determine if you need that functionality, and remove if 
so/if not.

PHP is a definite piggy.  Most of the others are fairly small.

You could always run PHP as a CGI, which MIGHT save you something -- 
simply because it wouldn't be a part of every child (but each child would 
still have to load the php binary -- but if your message board only has 
occasional hits there may be a savings).

Just my 0.02.

-Dan Mahoney


>
> 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.
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail

--

<Gushi> And hello kitty does not have a mouth.
<bizzy> . o O ( oh yes she does )

EfNet #macintosh, 2/21/01, some ridiculous hour of the morning

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.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