A Bird eye's view of the process tree in linux
By gaurav.verma on Jun 16, 2007
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:
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.