A Bird eye's view of the process tree in linux

Mastering the linux command is always rewarding. In this article, we look at the utility of seeing process graphs in linux, which might be quite useful in troubleshooting an debugging issues.

On Linux, the pstree -p <PID> gives the entire parent/child relationship tree in a very concise view. In this example, we see how to find out the PIDs of the java servlet processes running under the apache httpd process:

In 11i Oracle Apps environment, $SCRIPTS/adapcctl.sh status gives you the PIDs of the core and pls/sql apache processes. Simply do a pstree -p <PID> to see the entire tree graph:

pstree.GIF:

On Sun OS, the same can be achieved by ptree command
(usual location /usr/proc/bin). This command may be available depending
on if the proc library has been compiled into the OS or not.

Comments:

Yeah, pstree is pretty cool. A lot of people don't seem to know about it for some reason.

Posted by Marc on June 16, 2007 at 07:06 AM EDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today