Re: Troubleshooting Apache Out of Memory Errors

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

 



Can you check the value for MaxMemFree ?
thanks
-A

On Mon, Jan 5, 2009 at 3:27 PM, Plutocrat <plutocrat@xxxxxxxxx> wrote:
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
'--enable-force-cgi-redirect''--enable-fastcgi'
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.

JM

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