LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-21-2015, 02:45 PM   #1
superviks
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
Details of the OS process after it was killed in RHEL.


Dear Experts,

We had a performance issue earlier and it seemed that someone had resolved it by killing some Java process and the application started working again. But they wouldn't tell us what Java process they killed.

Had tried to grep it from history and got the OS PID's. However, would appreciate if someone can help me if I can check anywhere for the details as to what process was running with the PID which was killed.

Checked /var/log/messages and could not find any details.


OS: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Linux 2.6.32-504.12.2.el6.x86_64 x86_64 x86_64 x86_64 GNU/Linux



Warm Regards,
Vikram.

Last edited by superviks; 05-21-2015 at 02:52 PM. Reason: Spelling Mistake
 
Old 05-21-2015, 04:00 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
The pid won't be much use unless you also have the pacct (accounting) files from the same period. You could lookup the pid there and identify the recorded name (which doesn't HAVE to be accurate -and it may be truncated if really long).
 
Old 05-22-2015, 04:57 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You would need the BSD process accounting feature enabled for kernel plus GNU acct package installed. If you need more you can use the libaudit/audit.
 
Old 06-04-2015, 03:53 PM   #4
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Java is typically a more troublesome application to debug at that level, the PID itself would not give you the details you are needing. It has been some time since I needed to do this myself and I do not have a Java machine but if I remember correctly the procedure ran something like, locate the PID of the offending Java fork causing the error. So for example if the proc id is 1234 then look at the /proc/1234/maps file and inside the /proc/1234/map_files/ directory. That or run lsof and search for the process.
 
  


Reply

Tags
kill, process, rhel 6.6



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
Does child process get killed ,when we kill parent process.? gaurav_s Linux - Newbie 1 08-01-2014 12:50 AM
Why exactly was my process killed ??? qwerty47 Linux - Newbie 9 12-12-2013 12:08 AM
My Server Out of Memory killed. Lot's of juicy details. Help Ramanonos Linux - Server 4 10-14-2012 08:57 AM
find history of a job killed by "kernel: Out of Memory: Killed process" poulacou Linux - Server 3 09-20-2007 04:24 PM
Getting a Process Details grub Programming 4 05-28-2003 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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