LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2009, 11:22 PM   #1
chu_bun
LQ Newbie
 
Registered: Apr 2009
Location: Houston
Distribution: Centos
Posts: 9

Rep: Reputation: 1
Memory problems with latest version of httpd


I had a server that ran fine for years. But after upgrading to the latest version of CentOS and httpd, my server keeps on locking up when there are too many connections (under a nikto security scan for example).

I found lines like this in the message log
kernel: [<c0459c79>] out_of_memory+0x72/0x1a5 httpd invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
kernel: [<c0459c79>] out_of_memory+0x72/0x1a5
...
kernel: Total swap = 2096440kB
kernel: Free swap: 0kB

"top" would show about a bunch of httpd processes taking up 5, 10% of MEM. The only non-default setups are
post_max_size = 200M
upload_max_filesize = 200M
max_execution_time = 72000
max_input_time = 72000
in php.ini

I tried very small value for ServerLimit and MaxClients (10, 15) and these seems to prevent the server from hanging, but still the MEM% went to dangerously value (> 5%).

My provider blames it on a mem leak in http/mod_ssl, but I'm not so sure. Any suggestions? Thank you.
 
Old 06-22-2009, 12:56 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
access.log file size also effect the usage of total httpd memory usage. so just verify the access.log size
 
Old 06-22-2009, 12:01 PM   #3
chu_bun
LQ Newbie
 
Registered: Apr 2009
Location: Houston
Distribution: Centos
Posts: 9

Original Poster
Rep: Reputation: 1
On our test server, log file size is only 5+ MBytes. And it runs into the same problems as the production servers (300+ MBytes).

Here is an errata on the problem:
https://rhn.redhat.com/errata/RHSA-2009-1075.html

But the update does not fix the problem!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum is installing an old version of subversion -- how can I get the latest version? dhjdhj Linux - Newbie 6 06-18-2009 01:34 AM
Problems to compile the latest stable version of kernel (2.6.15.4) stomach Linux - General 3 02-24-2006 07:57 PM
Problems installing latest version of Kate el__sid Fedora 1 11-24-2005 04:15 PM
httpd service stop fails, no pid, this after latest update squadja Red Hat 2 08-11-2004 02:29 PM
Re: Latest HTTPD version, need help, very st00pid question methinks ;) spineshank Linux - Newbie 5 09-24-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration