« Workflow performance case study: Dont Repeat History, Learn from it | Main | For the want of XML parsing, iPayment was lost; for the want of not being able to take payment, business was lost.. »

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.

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mte1521/mt-tb.cgi/2130

Comments (1)

Marc:

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

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on June 16, 2007 1:46 PM.

The previous post in this blog was Workflow performance case study: Dont Repeat History, Learn from it.

The next post in this blog is For the want of XML parsing, iPayment was lost; for the want of not being able to take payment, business was lost...

Many more can be found on the main index page or by looking through the archives.

Top Tags

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type and Oracle