DevHeads.net

Out of memory error httpd

Hi,
One of my web server has started to give "Out of memory" errors.
HighMem per-cpu:Free pages:       13928kB (512kB HighMem)HighMem free:512kB min:512kB low:1024kB high:1536kB active:2635032kB inactive:2613404kB present:5832700kB pages_scanned:104935776 all_unreclaimable? yesHighMem: 0*4kB 0*8kB 4*16kB 4*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 512kB1327090 pages of HIGHMEMOut of Memory: Killed process  (httpd).
Little unsure about what exactly the problem is. All static content is being served by nginx and remaining is proxied to apache. The top and iostat command show %user around 44% and the remaining system stays idle.
avg-cpu:  %user   %nice    %sys %iowait   %idle                43.38    0.02    6.70    3.27   46.63
Any suggestions in this regard would be of great help.
RegardsRaina

Comments

Re: Out of memory error httpd

By =?ISO-8859-1?Q?... at 12/27/2010 - 10:02

On 12/27/2010 02:52 PM, Himanshu Raina wrote:
You've exprienced the oom-killer (<a href="http://linux-mm.org/OOM_Killer" title="http://linux-mm.org/OOM_Killer">http://linux-mm.org/OOM_Killer</a>). It
might not be httpd's fault, unless you've misconfigured it to use too
much resources in proportion to what's available in your system.

Have you changed the configuration or httpd, or installed a new module?
Please provide more information on your setup, otherwise i suspect it
would be hard to give you any straight answers.

/Björn

Re: Out of memory error httpd

By Himanshu Raina at 12/28/2010 - 01:47

Hi,
Except mod_rewrite,mod_php,mod_jk no extra module is installed. Apache prefork directives are configured as follows (remaining are default). Since I'm serving static content through nginx it's only dynamic content that apache serves. 
MaxClient 200MaxRequestPerChild 10000

Regards,

On 12/27/2010 02:52 PM, Himanshu Raina wrote:
You've exprienced the oom-killer (<a href="http://linux-mm.org/OOM_Killer" title="http://linux-mm.org/OOM_Killer">http://linux-mm.org/OOM_Killer</a>). It might not be httpd's fault, unless you've misconfigured it to use too much resources in proportion to what's available in your system.

Have you changed the configuration or httpd, or installed a new module?
Please provide more information on your setup, otherwise i suspect it would be hard to give you any straight answers.

/Björn