You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Himanshu Raina <ra...@yahoo.com> on 2010/12/27 14:52:10 UTC

[users@httpd] 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


Re: [users@httpd] Out of memory error httpd

Posted by Himanshu Raina <ra...@yahoo.com>.
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 Mon, 27/12/10, Björn Zettergren <bj...@basefarm.se> wrote:

From: Björn Zettergren <bj...@basefarm.se>
Subject: Re: [users@httpd] Out of memory error httpd
To: users@httpd.apache.org
Date: Monday, 27 December, 2010, 7:32 PM

On 12/27/2010 02:52 PM, Himanshu Raina wrote:
> 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
> 
> 

You've exprienced the oom-killer (http://linux-mm.org/OOM_Killer). 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

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




Re: [users@httpd] Out of memory error httpd

Posted by Björn Zettergren <bj...@basefarm.se>.
On 12/27/2010 02:52 PM, Himanshu Raina wrote:
> 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
>
>

You've exprienced the oom-killer (http://linux-mm.org/OOM_Killer). 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

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