LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-09-2004, 03:42 AM   #1
amitch3
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
kernel: Out of Memory: Killed process


I have installed RHEL ES 3.0 on DELL 1750 with 1GB RAM. Also i have 2GB Swap. I have got "Qmail+Vmailmgr+Tcpserver+RBL+SpamAssassin +Relay-CTRL+Qmail-Scanner+Courier IMAP Guide+POP3S+SMTPS" installed alongwith standard mysql, php and apache on this server.

My server dies randomly, sometimes after few hours and sometimes after 2-3 days and has following line in "/var/log/messages".
kernel: Out of Memory: Killed process 1059 (mysqld-max).

Before, i thought that this problem might be occuring due to "OOM killer" bug in kernel-2.4.21-4.0.3EL, when installed on RAID servers. But, even after updating the kernel to kernel-2.4.21-15.0.3EL, it does not seems to goaway.

Please advise if you have any idea??

Thanks n Regards
-Amit
 
Old 08-09-2004, 04:16 AM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
1) add more RAM
2) add more SWAP space (man swapon)
3) monitor system - which program consumes all the RAM (man top) and why
 
Old 08-09-2004, 12:26 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Sounds like one of the applications you're using has a fairly severe memory leak. Linux will detect an OOM condition after all physical and swap memory are used and then it will try to be "helpful" by killing your largest process to make room.

If the system really is recognizing 1GB of physical and 2GB of swap, then something must be getting out of control to fill up that much RAM. You're going to need to monitor application memory usage closely until you can determine which apps are the offenders. The "fun" part will be fixing them

mod_perl applications are notorious for having horrible memory leaks. It may be that you have a custom web app running that uses mod_perl and gobbles up memory that it never frees.
 
Old 08-17-2004, 11:36 AM   #4
durgeshdd
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Re: kernel: Out of Memory: Killed process

Hi,

I am also using RHEL ES 3.0 on DELL 1750 with 1GB RAM. Also i have 2GB Swap and I am facing the same problem. I am using MySQL and apache on this server. It says "out of memory, killed httpd deamon after a week. I will aprreciate if someone can help me to fix this issue.

Thanks



Quote:
Originally posted by amitch3
I have installed RHEL ES 3.0 on DELL 1750 with 1GB RAM. Also i have 2GB Swap. I have got "Qmail+Vmailmgr+Tcpserver+RBL+SpamAssassin +Relay-CTRL+Qmail-Scanner+Courier IMAP Guide+POP3S+SMTPS" installed alongwith standard mysql, php and apache on this server.

My server dies randomly, sometimes after few hours and sometimes after 2-3 days and has following line in "/var/log/messages".
kernel: Out of Memory: Killed process 1059 (mysqld-max).

Before, i thought that this problem might be occuring due to "OOM killer" bug in kernel-2.4.21-4.0.3EL, when installed on RAID servers. But, even after updating the kernel to kernel-2.4.21-15.0.3EL, it does not seems to goaway.

Please advise if you have any idea??

Thanks n Regards
-Amit
 
Old 08-17-2004, 01:37 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
These definitely sound like memory leak issues. Make periodic checks of your system to see which processes are consuming all of the memory.
 
Old 08-20-2004, 02:24 AM   #6
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
update the kernel to the latest 2.4 stable or even go 2.6 as its fully stable right now. update all the primary packages that are running right now, like qmail and spamassasin apache likes to leak sometimes too. update perl and python to latest stable versions. We had similar issues with a setup that's close to what you are describing. after all the updates its been stable for the last few months.
 
  


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
Out of Memory: Killed process maenho Linux - Software 3 10-16-2005 05:06 AM
kernel: Out of Memory: Killed process guarriman Linux - General 1 08-13-2005 04:14 AM
how to prevent process from being killed? iclinux Linux - Newbie 7 01-14-2005 10:43 PM
Killed Process Problem chr Slackware 2 05-06-2003 01:33 AM
process is getting killed automatically chens_83 Linux - General 2 09-16-2002 03:52 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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