LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2002, 03:37 PM   #1
dancarl
LQ Newbie
 
Registered: Jul 2002
Location: Minneapolis, MN
Distribution: Fedora
Posts: 7

Rep: Reputation: 0
Angry Out of Memory error


This morning I awoke to find my RH server was down.
Here is the message found in log
Sep 10 01:05:12 ns1 kernel: Out of Memory: Killed process 5576 (httpd). and so on...
From what I read about it on the web, linux starts shutting down the biggest memory hog and continues down.
It eventually shutdown the entire system.
I had to reboot because I wasn't even able to ssh in.
The same thing happend about a month ago.
I thought it was caused by a couple cron jobs, so I changed them to run a few hours later. This seemed to solve the problem until in reappeared last night. It always happens around 1:00a.m.
A friend of mine suggested tyring to find out what process is using up the memory by adding a cronjob to perform a ps and keep the output in a log, which I have done.
I am wondering if anyone else has any idea's.

Specs
RH 7.2 w/ latest updates
Dual P-III 933, 512MB Mem, 512MB Swap
Runs Apache 1.3.26, Tomcat 4.0.4, DNS and Postgresql 7.2
 
Old 09-10-2002, 03:43 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The idea with ps is very good. To solve your problem you must know what uses all the memory. Httpd is the first killed program, so it may be the biggest one. Try to observe it (look how much memory it uses from time to time). 1am is a time for cron.daily in most systems. Look into it. But it may also be an DOS attempt.
 
Old 09-10-2002, 05:27 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You can also run "atsar" a sar type app (see freshmeat). Allows for finer grained stats on your apps processes and memory reqs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR => OUT_OF_MEMORY Internal memory allocation error FarrelO Linux - Newbie 0 06-03-2004 10:04 AM
Out of Memory Error baye Linux - Software 1 02-11-2004 06:39 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
Memory Error rthughes Linux - Software 4 03-10-2003 07:26 PM
CRC and Out of Memory Error FNC Linux - General 3 11-04-2002 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:51 PM.

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