LinuxQuestions.org
Visit Jeremy's Blog.
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 09-20-2007, 06:30 AM   #1
poulacou
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
Question find history of a job killed by "kernel: Out of Memory: Killed process"


During a long/few times a calcul's server not responding.

Anyone can't logging
Anyone can't execut command (top, ps, ...)

After in the /var/log/messages, we can see :
Sep 20 11:28:36 cluster-b kernel: Out of Memory: Killed process 16322 (Transp_image).
Sep 20 11:28:40 cluster-b kernel: Out of Memory: Killed process 10121 (rech).
Sep 20 11:28:41 cluster-b kernel: Out of Memory: Killed process 8045 (visu).
Sep 20 11:28:45 cluster-b kernel: Out of Memory: Killed process 25647 (Transp_image).


I wish know for each process killed :
- the owner of the process
- the memory usage of the process

It is possible ?? a file containt this information ??


With this, I could bactrack the binary's problem (in fact i suppose that the kernel kill the biggest use's memory process)



Thank you for your help and your idea ...

ps : for the futur, i could run a script that log the activity but i supposs that it exist another solution.
ps2 : "sar" don't run
 
Old 09-20-2007, 06:39 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
If you can't add more memory, a "no cost" option is to add more swap space. Might only delay the situation.
If you can't/won't run "sar", try running "top" in batch and writing it to a file - say every couple of minutes. Will at least give you a bit of history.
 
Old 09-20-2007, 07:00 AM   #3
poulacou
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
If you can't add more memory, a "no cost" option is to add more swap space. Might only delay the situation.
If you can't/won't run "sar", try running "top" in batch and writing it to a file - say every couple of minutes. Will at least give you a bit of history.
yes with "top -b" i can easyly do this ...

but for the process which have been killed this morning, does exist a history of this killed ?? in /proc/. /var/. ??

thank you
 
Old 09-20-2007, 04:24 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Not of it's memory usage that I'm aware of.
 
  


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 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
kernel: Out of Memory: Killed process amitch3 Linux - Enterprise 5 08-20-2004 02:24 AM
Process getting "Killed"!? ssnkumar Programming 8 03-23-2004 06:25 AM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 11:53 AM

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

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