pstack

http://docs.oracle.com/cd/E19253-01/819-7059/rfsrefer-40/

  • 此命令可显示每个进程的栈跟踪。
  • pstack 命令必须由相应进程的属主或 root 运行。
  • 可以使用 pstack 来确定进程挂起的位置。此命令允许使用的唯一选项是要检查的进程的 PID。

such as:

Thread 56 (Thread 0x7f691463f700 (LWP 19609)):
#0  0x0000003ecd0e14f3 in select () from /lib64/libc.so.6
#1  0x00007f6929bc851d in TrSvIoMux::select() () from /usr/dhafw/shlib/libFwkInfra.so
#2  0x00007f6929bc79d5 in TrSvIoMux::singleSelect() () from /usr/dhafw/shlib/libFwkInfra.so
#3  0x00007f6929bc63d4 in TrSvIoMux::mainLoop() () from /usr/dhafw/shlib/libFwkInfra.so
#4  0x00007f6929368cb5 in DDBTopolologyManager::thread_main(void*) () from /sn/sps/OAM420/bin/lib/libStubTopologyMgtApi.so
#5  0x00007f6929baa4d8 in DhaFw::startTheThead(void*) () from /usr/dhafw/shlib/libFwkInfra.so
#6  0x0000003ecd807851 in start_thread () from /lib64/libpthread.so.0
#7  0x0000003ecd0e890d in clone () from /lib64/libc.so.6
Thread 55 (Thread 0x7f6914633700 (LWP 19611)):
#0  0x0000003ecd0e14f3 in select () from /lib64/libc.so.6
#1  0x00007f6929bc851d in TrSvIoMux::select() () from /usr/dhafw/shlib/libFwkInfra.so
#2  0x00007f6929bc79d5 in TrSvIoMux::singleSelect() () from /usr/dhafw/shlib/libFwkInfra.so
#3  0x00007f6929bc63d4 in TrSvIoMux::mainLoop() () from /usr/dhafw/shlib/libFwkInfra.so
#4  0x00007f6929112471 in MatedPairSMPS::thread_main(void*) () from /usr/dhafw/shlib/libMatedPairApi.so
#5  0x00007f6929baa4d8 in DhaFw::startTheThead(void*) () from /usr/dhafw/shlib/libFwkInfra.so
#6  0x0000003ecd807851 in start_thread () from /lib64/libpthread.so.0
#7  0x0000003ecd0e890d in clone () from /lib64/libc.so.6



你可能感兴趣的:(pstack)