how do i look deeper into a PID??

General support questions including new installations
Post Reply
dreams3577
Posts: 8
Joined: 2009/10/17 07:31:29

how do i look deeper into a PID??

Post by dreams3577 » 2011/07/15 15:39:05

Hi All

running ps -ef

I get a number of processes back.. lets take the one below..

apache 10862 2845 0 16:02 ? 00:00:00 /usr/sbin/httpd

It is clearly a webpage that is being used..

How do I look deeper into the process '10862' and see what webpage is being used?

many thanks
steve

User avatar
TrevorH
Forum Moderator
Posts: 29985
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: how do i look deeper into a PID??

Post by TrevorH » 2011/07/15 17:58:46

For this particular example, use

[code]
service httpd fullstatus
[/code]

You probably have to uncomment a section in /etc/httpd/conf/httpd.conf that is commented out by default (hunt for server-status) before this will work.

logan
Posts: 64
Joined: 2008/08/01 16:40:34

how do i look deeper into a PID??

Post by logan » 2011/07/15 19:41:41

I'm not sure if there's the possibility of Apache being unable to get status on a particular child process, race condition or otherwise spinning out of control, but you could use [i]lsof -p 10862[/i] to see what files/directories are open and maybe [i]strace -fp 10862[/i] to see what it's doing.

Post Reply

Return to “CentOS 5 - General Support”