httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plutocrat <>
Subject Re: [users@httpd] Troubleshooting Apache Out of Memory Errors
Date Mon, 05 Jan 2009 09:57:39 GMT
Thanks for the speedy reply Sander.

Sander Temme wrote, On Monday, January 05, 2009 02:21 PM:
> What do you mean when you say 'cli'?  Are you using mod_php, or running
> it as a CGI?

Hmm,. Not exactly sure. That was the output of php --version. 

I've got the php5_module loaded according to apachectrl -M and the cgi_module as well. 

With php --info I can see that it has the following compile flags
and further down it tells me 
Server API => Command Line Interface

Does that help. I don't really know what I'm looking for here. 

>> memory_limit = 100M
> Note that memory_limit is per script executed.  I believe the default is
> 8Mb: what made you change that?

Joomla seems to require it. I tried reducing to 10, 20, 32, 64, but Joomla wouldn't even display
a page, so I put it back to 100Mb. So maybe this is the key. Joomla is somehow sucking up
too much memory, and when it gets hit hard, it fills up the memory too quick. If PHP is running
as an apache module then obviously httpd would be showing as the culprit in the ps and top
commands. Hmmm. Any suggestions how I can get more information on Joomla/PHP memory usage?

> I'd look at a couple of things:
> 1) How does your MySQL server configuration match that Apache
> configuration?  Does your httpd ever have problems connecting to MySQL?

Only when the Out Of Memory handler kills MySQLd and it doesn't respawn, but usually it does.
Generally mysqld seems to consume about 2% of CPU and very little memory, so I think the httpd/php
interaction is looking more likely. If you can give me a few variables you're interested in
from the mysql configuration, I can post them here for sure. 

> 2) When you look at your processes in top, does the RSS column for your
> httpd processes show any disturbing development? 
> How big do the processes get in the 4000 connections you allow them?

Um, OK, I'm afraid you lost me here. RSS column? I can't see one. Generally the server is
humming along with between 2 and 5 httpd processes all eating up around 8-20% of the memory.

> 3) When you filter all the 404 ("File does not exist") out of your error
> log, are you left with any clues?

I shall take a look at this and get back to you. Thanks for the pointers so far. Plenty more
to explore. 


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message