Tuesday, August 9, 2011

ptree

ptree command to identify the process hierarchy of the application

ptree <pid>

Eg :

[oraplayers21:ORA_PLAYERS:applmgr]$ ptree 8140
8140  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8152  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8153  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
    8155  <defunct>
    8158  <defunct>
    8154  <defunct>
    8157  <defunct>
    8156  <defunct>
    8159  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
    8160  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
    8161  /apps/applcomn/util/java/1.5/jdk1.5.0_15/jre/bin/java -DCLIENT_PROCE
  8191  /apps/applmgr/iAS/Apache/Apache/bin/httpd -d /apps/applmgr
  8192  /apps/applmgr/iAS/Apache/Apache/b
  
- Helps identifying orphan processes

- Equivalent of ptree is pstree in Linux



UR's Key Run ;-) 

No comments:

Post a Comment