Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process Trace

Status
Not open for further replies.

rksharma

Programmer
Dec 17, 2000
12
US
Can someone identify the best trace tool to use to trace a single process. I need to know infomation like all the file opens, file reads and times, other system resource usage.

Thanks.
 
There are many ways to trace a process on AIX.
The tools that can be used are tprof and svmon.

Using tprof you can trace all the processes running on your box for a specific period of time.

For Eg
#tprof -x sleep 30
This cmd specifies to run the trace for 30 secs
An ASCII report named __prof.all will be generated which contains the info u r looking for.

If you want to run the trace on a process started by a program then you can start the tprof on the program

#tprof /home/jonsie/test.prg
Here an ASCII file __test.all will be generated.

Also you can use the svmon...
To get a complete summary of all the processes
#svmon -P|pg
To get a segment report
#svmon -S
To narrow down ur search to a specific process
#svmon -P <pid>

Pls go through the help for svmon for additional info

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top