Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Linux
    shell> pstack processid
  • Sun
    shell> pstack -F processid

Example

...

Code Block
titleExample
[omegaman@as48-x64 ~]$ uname -a
Linux as48-x64 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[omegaman@as48-x64 ~]$ 
[omegaman@as48-x64 ~]$ whereis pstack
pstack: /usr/bin/pstack /usr/share/man/man1/pstack.1.gz
[omegaman@as48-x64 ~]$ ps -ef | grep altibase | grep omegaman
omegaman 16745 16454  0 13:55 pts/2    00:00:00 grep altibase
omegaman 22978     1  0 Dec04 ?        00:00:07 /home/omegaman/altibase_home/bin/altibase -p boot from admin
[omegaman@as48-x64 ~]$ pstack 22978      :22978 is  a process id of altibase
Thread 41 (Thread 1084229984 (LWP 22979)):
#0  0x00000039070c2f56 in __select_nocancel () from /lib64/tls/libc.so.6
#1  0x0000000000f40f4b in idvClockThread::run ()
#2  0x0000000000ef797c in idtBaseThread::staticRunner ()
#3  0x0000003907706137 in start_thread () from /lib64/tls/libpthread.so.0
#4  0x00000039070c9f03 in clone () from /lib64/tls/libc.so.6
Thread 40 (Thread 1094719840 (LWP 22980)): 

...