pstack命令用来显示进程的栈跟踪。 pstack 命令必须由相应进程的属主或root账号运行。可以使用pstack来确定进程挂起的位置。此命令只有一个参数,那就是pid,具体关于pstack的介绍可以查看man手册,如下所示:

[root@DB-Server ~]# man pstack
PSTACK(1)                  Linux Programmer’s Manual                 PSTACK(1)
 
NAME
       pstack - print a stack trace of a running process
 
SYNOPSIS
       pstack pid
 
DESCRIPTION
       pstack  attaches  to  the active process named by the pid on the command line, and prints out an execution stack trace.  If ELF symbols exist in the binary (usually the case
       unless you have run strip(1)), then symbolic addresses are printed as well.
 
       If the process is part of a thread group, then pstack will print out a stack trace for each of the threads in the group.
 
SEE ALSO
       nm(1), ptrace(2), gdb(1)
 
AUTHORS
       Ross Thompson <ross@whatsis.com>
 
       Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
 
Red Hat Linux                     Dec 17 2004                        PSTACK(1)
(END) 

相关文章:

  • 2021-08-09
  • 2022-02-04
  • 2021-07-18
  • 2021-05-16
猜你喜欢
  • 2021-11-10
  • 2022-02-03
  • 2022-12-23
  • 2021-12-03
  • 2021-11-07
  • 2021-12-26
  • 2021-11-28
相关资源
相似解决方案