linux如何查看一个进程的堆栈
来源:互联网 发布:现在usb属于什么端口 编辑:程序博客网 时间:2024/05/16 11:27
方法一:pstack pid
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)
方法二:gstack pid
NAME
gstack - print a stack trace of a running process
SYNOPSIS
gstack pid
DESCRIPTION
gstack 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 gstack will print out a stack trace for each of the threads in the group.
SEE ALSO
nm(1), ptrace(2), gdb(1)
方法三:
使用gdb 然后attach 进程ID,然后再使用命令 thread apply all bt。
方法一和方法二一样,方法三可以查看更多的信息。
- Linux 如何查看一个进程的堆栈
- linux如何查看一个进程的堆栈
- linux如何查看一个进程的堆栈
- linux如何查看一个进程的堆栈
- Linux:如何查看一个进程的详细的启动时间
- Linux:如何查看一个进程的详细的启动时间
- Linux:如何查看一个进程的详细的启动时间
- Linux:如何查看一个进程的详细的启动时间
- 亮哥推荐 查看一个进程的堆栈文章
- Linux下查看Java进程的运行期间堆栈情况
- linux 查看进程的运行堆栈信息命令-gstack
- linux进程的堆栈
- Linux进程初始堆栈内容查看
- 如何查看一个进程的启动时间
- Linux如何查看当前进程的ID
- Linux如何查看当前进程的ID
- Linux多线程编程的时候如何查看一个进程中的某个线程是否存活
- 查看Linux进程CPU过高具体的线程堆栈(不中断程序)
- eclipse根据C++项目组提供的WEBSERVICE的WSDL文档生成客户端,打成jar包,供spring项目使用
- 不允许一个用户使用一个以上用户名与服务器或共享资源的多重连接
- 如何设置布线默认过孔Via(Cadence16.0及以上版本)
- oracle 数组实现
- android TimePicker
- linux如何查看一个进程的堆栈
- 安全编程: 防止缓冲区溢出
- C语言-scanf
- MySQL 数据类型 整型 长度
- ThinkPHP v3.1.2版本独立分组功能的解决思路 2012-11-12 19:50来源:ThinkPHP 作者:末信 点击:719次 我要评论
- php 日期加减处理函数
- WeiFenLuo.winFormsUI.Docking.dll的使用
- LineChart实现双Y坐标轴
- <httpModules></httpModules>的使用