LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-20-2009, 06:53 AM   #1
snarez
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Rep: Reputation: 1
Swap used up, then oom-killer kills Apache 2 on Debian 4.0


So, I have a serious problem.

Quick question: Can segmentation fault in Apache2 or OCI8 module consume swap?

Long question:

I have Debian 4.0 on Dell PowerEdge 2950. It runs Apache2 with OCI8, and an application written in Java. A few users are testing a web app, and at seemingly random times, swap usage jumps to 8GB (full), then oom-killer kills apache instances. Now, we have exactly the same web app and Java app on a different machine, which is a normal PC but with Debian 5.0, and swap usage is next to 0, and RAM usage is much lower too. Also, on machine1 OCI8 version was 1.3.4, and on machine2 OCI8 is 1.3.5.
I read in OCI release notes that new version fixed a bug where it caused segmentation fault if ORACLE_HOME variable was not set. Of course, it was not set here, so I set it to correct value. The server now seems to behave more politely, but still swap usage is slowly increasing, although I haven't managed to "DOS" it with multiple requests (which was quite doable earlier).

I suppose that the best thing to do would be to install 5.0, but I am NOT the admin; he is on vacation, so it will have to wait. As I said, things look better now, but I'd like to know if it is possible that the segfaults have eaten up swap?

Also, Java app doesn't seem to be the issue, since it actually does something 2 times a day, and in that time it uses very little RAM, while Apache2 has 10+ instances which use 5-12%MEM (as top command reports).

Any ideas?

Thanx in advance..
 
Old 07-20-2009, 07:05 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Segmentation fault means the code is mishandling memory addressing.
'nuff said I'd reckon.

Anything is possible - especially a memory leak.
 
Old 07-20-2009, 07:10 AM   #3
snarez
LQ Newbie
 
Registered: Jul 2009
Posts: 6

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by syg00 View Post
Segmentation fault means the code is mishandling memory addressing.
'nuff said I'd reckon.

Anything is possible - especially a memory leak.
That is the reason why I suspected it. But, when I wrote a program that had a seg fault (on a completely unrelated machine ofcourse), the program would die displaying error on console. But apache runs and (default) logs don't report anything. Is it possible that it's silently eating up swap? Any way to test or log it ?
 
  


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
Help me understand why oom-killer kicks in Ralfredo Linux - Kernel 20 04-30-2009 05:53 PM
Is it OOM Killer - how to tell from sar? mohitanchlia Linux - General 12 04-29-2009 07:12 PM
oom-killer on RHEL5.2 jaiarunk_s Linux - Server 3 12-12-2008 07:54 PM
oom killer vmware server concerns watts3000 Linux - Server 2 05-01-2007 11:05 PM
OOM-Killer woes Slim Backwater Slackware 2 07-25-2006 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:07 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