Finding out information about a process that got killed.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Finding out information about a process that got killed.
Hello Sirs,
I have this server which had a OOM condition and killed few processes. Can someone please explain me how to find out which process got killed using the PID listed in the logs and how to see if the process was started back or not. OS is RHEL 6.x. Thanks in advance.
root@server102 [/root]
# grep -i 'kill' /var/log/messages
Jun 9 16:10:39 server102 kernel: ruby invoked oom-killer: gfp_mask=0x280da, order=0, oom_adj=0, oom_score_adj=0
Jun 9 16:10:39 server102 kernel: [<ffffffff81127892>] ? oom_kill_process+0x82/0x2a0
Jun 9 16:10:39 server102 kernel: Out of memory: Kill process 5343 (ruby) score 350 or sacrifice child
Jun 9 16:10:39 server102 kernel: Killed process 5343, UID 8162, (ruby) total-vm:2747456kB, anon-rss:1720308kB, file-rss:172kB
Jun 9 16:10:39 server102 kernel: vmtoolsd invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
Jun 9 16:10:39 server102 kernel: [<ffffffff81127892>] ? oom_kill_process+0x82/0x2a0
Jun 9 16:10:39 server102 kernel: Out of memory: Kill process 5345 (ruby-timer-thr) score 350 or sacrifice child
Jun 9 16:10:39 server102 kernel: Killed process 5345, UID 8162, (ruby-timer-thr) total-vm:2747456kB, anon-rss:1720308kB, file-rss:172kB
root@server102 [/root]
# ps -ef | grep ruby*
root 9349 1 0 01:52 ? 00:00:02 /usr/bin/ruby /usr/bin/puppet agent
root 25056 23850 0 16:48 pts/0 00:00:00 grep ruby*
root@server102 [/root]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.