Solved

This is in AIX 5.3..need a command

Posted on 2011-09-11
2
1,338 Views
Last Modified: 2012-05-12
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
Comment
Question by:aixtutorial
  • 2
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 36521173
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
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36521178
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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now