• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1512
  • Last Modified:

This is in AIX 5.3..need a command

This is in AIX 5.3..need a command

What is the equivalent command for pstack in AIX please also provide the syntax of the command
0
aixtutorial
Asked:
aixtutorial
  • 2
1 Solution
 
woolmilkporcCommented:
Hi,

if you just want to see the stack of a process you can use

procstack PID

to print the hexadecimal addresses and symbolic names for all the threads in the process.

If you need a real trace the command to use is

dbx

It has lots of options and parameters, too many to explain here.
The basic format is

dbx -a PID

You will get a prompt. "h" gives you a list of subcommands.

There is a neat wrapper script to dbx from IBM called stackit.ksh

You can get this script as well as usage information here:

http://www-01.ibm.com/support/docview.wss?uid=swg21179404

Basically you'll have to run

stackit.ksh -p PID

wmp
0
 
woolmilkporcCommented:
If you want to see system calls, dynamically loaded user level function calls, received signals, and incurred machine faults
of a process then

truss -p PID

would be an option.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now